summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-05-23 19:28:16 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-06 11:25:47 +0200
commit9c63946c032c3f0882f75b51636124baf5659913 (patch)
tree6e788f4938403802b9999b0537b3ba8f1bfbd839 /web
parent345b3216c87c7b365916e5948ad3bdb1bb045016 (diff)
downloadaur-9c63946c032c3f0882f75b51636124baf5659913.tar.gz
aur-9c63946c032c3f0882f75b51636124baf5659913.tar.xz
pkg_details.php: Use sane format for date strings
No need to show a full RFC 2822-compliant date here. Instead, display date, hours and minutes for "Last Updated" and "First Submitted" fields and display the date only for the out-of-date time stamp. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: canyonknight <canyonknight@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/template/pkg_details.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 93e0469b..102694cd 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -64,9 +64,9 @@ $msg = __('unknown');
$license = empty($row['License']) ? $msg : $row['License'];
# Print the timestamps for last updates
-$updated_time = ($row["ModifiedTS"] == 0) ? $msg : gmdate("r", intval($row["ModifiedTS"]));
-$submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("r", intval($row["SubmittedTS"]));
-$out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row["OutOfDateTS"]));
+$updated_time = ($row["ModifiedTS"] == 0) ? $msg : gmdate("Y-m-d H:i", intval($row["ModifiedTS"]));
+$submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("Y-m-d H:i", intval($row["SubmittedTS"]));
+$out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("Y-m-d", intval($row["OutOfDateTS"]));
?>
<div class="pgbox">