change all timestamps to display utc

This commit is contained in:
simo 2006-01-02 08:21:58 +00:00
parent f47b09de42
commit d534bb1535
2 changed files with 6 additions and 6 deletions

View file

@ -157,10 +157,10 @@ while ($row = mysql_fetch_assoc($result)) {
$mod_int = intval($row["ModifiedTS"]); $mod_int = intval($row["ModifiedTS"]);
$sub_int = intval($row["SubmittedTS"]); $sub_int = intval($row["SubmittedTS"]);
if ($mod_int != 0) { if ($mod_int != 0) {
$modstring = date("r", $mod_int); $modstring = gmdate("r", $mod_int);
} }
elseif ($sub_int != 0) { elseif ($sub_int != 0) {
$modstring = '<img src="/images/new.gif"/> '.date("r", $sub_int); $modstring = '<img src="/images/new.gif"/> '.gmdate("r", $sub_int);
} }
else { else {
$mod_string = "(unknown)"; $mod_string = "(unknown)";

View file

@ -333,8 +333,8 @@ function package_details($id=0, $SID="") {
print "</tr>\n"; print "</tr>\n";
# Print the timestamps for last updates # Print the timestamps for last updates
$updated_time = ($row["ModifiedTS"] == 0) ? "(unknown)" : date("r", intval($row["ModifiedTS"])); $updated_time = ($row["ModifiedTS"] == 0) ? "(unknown)" : gmdate("r", intval($row["ModifiedTS"]));
$submitted_time = ($row["SubmittedTS"] == 0) ? "(unknown)" : date("r", intval($row["SubmittedTS"])); $submitted_time = ($row["SubmittedTS"] == 0) ? "(unknown)" : gmdate("r", intval($row["SubmittedTS"]));
print "<tr>\n"; print "<tr>\n";
print " <td class='boxSoft' colspan='2'>"; print " <td class='boxSoft' colspan='2'>";
print "<span class='f3'>"; print "<span class='f3'>";
@ -508,11 +508,11 @@ function package_details($id=0, $SID="") {
if ($SID) { if ($SID) {
print __("Comment by: %h%s%h on %h%s%h", print __("Comment by: %h%s%h on %h%s%h",
array("<a href='/account.php?Action=AccountInfo&ID=".$carr["UsersID"]."'><b>",$carr["UserName"],"</b></a>", array("<a href='/account.php?Action=AccountInfo&ID=".$carr["UsersID"]."'><b>",$carr["UserName"],"</b></a>",
"<i>",date("Ymd [H:i:s]",$carr["CommentTS"]),"</i>")); "<i>",gmdate("Ymd [H:i:s]",$carr["CommentTS"]),"</i>"));
} else { } else {
print __("Comment by: %h%s%h on %h%s%h", print __("Comment by: %h%s%h on %h%s%h",
array("<b>",$carr["UserName"],"</b>", array("<b>",$carr["UserName"],"</b>",
"<i>",date("Ymd [H:i:s]",$carr["CommentTS"]),"</i>")); "<i>",gmdate("Ymd [H:i:s]",$carr["CommentTS"]),"</i>"));
} }
print "</span>"; print "</span>";
print "<tr><td class='boxSoft'>"; print "<tr><td class='boxSoft'>";