mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
345b3216c8
commit
9c63946c03
1 changed files with 3 additions and 3 deletions
|
@ -64,9 +64,9 @@ $msg = __('unknown');
|
||||||
$license = empty($row['License']) ? $msg : $row['License'];
|
$license = empty($row['License']) ? $msg : $row['License'];
|
||||||
|
|
||||||
# Print the timestamps for last updates
|
# Print the timestamps for last updates
|
||||||
$updated_time = ($row["ModifiedTS"] == 0) ? $msg : gmdate("r", intval($row["ModifiedTS"]));
|
$updated_time = ($row["ModifiedTS"] == 0) ? $msg : gmdate("Y-m-d H:i", intval($row["ModifiedTS"]));
|
||||||
$submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("r", intval($row["SubmittedTS"]));
|
$submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("Y-m-d H:i", intval($row["SubmittedTS"]));
|
||||||
$out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row["OutOfDateTS"]));
|
$out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("Y-m-d", intval($row["OutOfDateTS"]));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="pgbox">
|
<div class="pgbox">
|
||||||
|
|
Loading…
Add table
Reference in a new issue