From d534bb153551a914bf00c81d02743cdbafdfc450 Mon Sep 17 00:00:00 2001 From: simo Date: Mon, 2 Jan 2006 08:21:58 +0000 Subject: change all timestamps to display utc --- web/lib/pkgfuncs.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index a868d53..8d77b97 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -333,8 +333,8 @@ function package_details($id=0, $SID="") { print "\n"; # Print the timestamps for last updates - $updated_time = ($row["ModifiedTS"] == 0) ? "(unknown)" : date("r", intval($row["ModifiedTS"])); - $submitted_time = ($row["SubmittedTS"] == 0) ? "(unknown)" : date("r", intval($row["SubmittedTS"])); + $updated_time = ($row["ModifiedTS"] == 0) ? "(unknown)" : gmdate("r", intval($row["ModifiedTS"])); + $submitted_time = ($row["SubmittedTS"] == 0) ? "(unknown)" : gmdate("r", intval($row["SubmittedTS"])); print "\n"; print " "; print ""; @@ -508,11 +508,11 @@ function package_details($id=0, $SID="") { if ($SID) { print __("Comment by: %h%s%h on %h%s%h", array("",$carr["UserName"],"", - "",date("Ymd [H:i:s]",$carr["CommentTS"]),"")); + "",gmdate("Ymd [H:i:s]",$carr["CommentTS"]),"")); } else { print __("Comment by: %h%s%h on %h%s%h", array("",$carr["UserName"],"", - "",date("Ymd [H:i:s]",$carr["CommentTS"]),"")); + "",gmdate("Ymd [H:i:s]",$carr["CommentTS"]),"")); } print ""; print ""; -- cgit v1.2.3-70-g09d2