[opw-web] Add UTC to contract acceptance times
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] Add UTC to contract acceptance times
- Date: Tue, 29 Dec 2015 16:20:16 +0000 (UTC)
commit 643d72037b2037b3be1d74c0b54b327ba1b890bf
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Dec 29 11:17:50 2015 -0500
Add UTC to contract acceptance times
modules/mod_contract.php | 4 ++--
modules/mod_user_profile.php | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/mod_contract.php b/modules/mod_contract.php
index f373cf7..9defddd 100644
--- a/modules/mod_contract.php
+++ b/modules/mod_contract.php
@@ -168,7 +168,7 @@ if ($action == 'edit_student' || $action == 'edit_mentor') {
$pdf->write(0, "\n");
$contract = 'E-Signed';
$contract .= ' by "' . $row['contract_entered_name'] . '"';
- $contract .= ' on ' . date('M d, Y H:i:s', $row['contract_accepted_time']);
+ $contract .= ' on ' . date('M d, Y H:i:s', $row['contract_accepted_time']) + ' UTC';
if ($row['contract_accepted_from'] != '')
$contract .= ' from ' . str_replace(' ', ' via ', $row['contract_accepted_from']);
$contract .= ' using ' .$config->site_url;
@@ -315,7 +315,7 @@ if ($action == 'edit_student' || $action == 'edit_mentor') {
'from_visibility' => $skin->visibility($contract_accepted_from != ''),
'program_mentor_visibility' => $skin->visibility($is_mentor),
'program_student_visibility' => $skin->visibility($is_student),
- 'contract_accepted_time' => date('M d, Y H:i:s', $contract_accepted_time),
+ 'contract_accepted_time' => date('M d, Y H:i:s', $contract_accepted_time) + ' UTC',
'contract_entered_name' => htmlspecialchars($contract_entered_name),
'contract_accepted_from' => htmlspecialchars(str_replace(' ', $via, $contract_accepted_from)),
'contract_html' => $contract_html,
diff --git a/modules/mod_user_profile.php b/modules/mod_user_profile.php
index 7f792b5..ae908b8 100644
--- a/modules/mod_user_profile.php
+++ b/modules/mod_user_profile.php
@@ -177,7 +177,7 @@ if ($action == 'view') {
'approved_visibility' => $skin->visibility($program['contract_approved']),
'accepted_visibility' =>
$skin->visibility($program['contract_accepted_time'] != 0),
'not_accepted_visibility' => $skin->visibility(!$is_self &&
!$program['contract_approved'] && $program['contract_accepted_time'] == 0),
- 'contract_accepted_time' => date('M d, Y H:i:s',
$program['contract_accepted_time']),
+ 'contract_accepted_time' => date('M d, Y H:i:s',
$program['contract_accepted_time']) + ' UTC',
'contract_entered_name' =>
htmlspecialchars($program['contract_entered_name']),
'accepted' => $skin->visibility($program['contract_approved']),
));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]