From 4a4f26cda6582fd8ca41e185a73429708966116e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 23 May 2012 13:29:01 -0400 Subject: Use sane date format strings everywhere We fixed this for the fields displayed on the package details page in commit b5fffe9a02cd4fd3b7da66e403f02eea89c8fcad. This should fix the remaining ones. Signed-off-by: Lukas Fleischer Signed-off-by: canyonknight --- web/template/pkg_comments.php | 2 +- web/template/stats/updates_table.php | 4 ++-- web/template/tu_details.php | 4 ++-- web/template/tu_list.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'web/template') diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index bd26a3e8..d8346511 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -8,7 +8,7 @@ while (list($indx, $carr) = each($comments)) { ?> $carr['UserName'] = "{$carr['UserName']}"; } - $commentHeader = '

' . __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])) . '

'; + $commentHeader = '

' . __('Comment by: %s on %s', $carr['UserName'], gmdate('Y-m-d H:i', $carr['CommentTS'])) . '

'; if (canDeleteCommentArray($carr, $atype, $uid)) { $durl = '
'; diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php index 8da67320..92c6e425 100644 --- a/web/template/stats/updates_table.php +++ b/web/template/stats/updates_table.php @@ -21,9 +21,9 @@ $mod_int = intval($row["ModifiedTS"]); $sub_int = intval($row["SubmittedTS"]); if ($mod_int == $sub_int): - $modstring = 'New! ' . gmdate("r", $sub_int); + $modstring = 'New! ' . gmdate("Y-m-d H:i", $sub_int); else: - $modstring = gmdate("r", $mod_int); + $modstring = gmdate("Y-m-d H:i", $mod_int); endif; ?> diff --git a/web/template/tu_details.php b/web/template/tu_details.php index c48f6038..52a86561 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -17,8 +17,8 @@ if ($isrunning == 1) { ?> N/A
-" . gmdate("r", $row['Submitted']) . "", "" . username_from_id($row['SubmitterID']) . "") ?>
-:

+" . gmdate("Y-m-d H:i", $row['Submitted']) . "", "" . username_from_id($row['SubmitterID']) . "") ?>
+:

\n", htmlspecialchars($row['Agenda'])) ?> diff --git a/web/template/tu_list.php b/web/template/tu_list.php index 0966a4c2..16dd6901 100644 --- a/web/template/tu_list.php +++ b/web/template/tu_list.php @@ -24,8 +24,8 @@ ?> '> - - + +