On Fri, Nov 4, 2011 at 8:42 AM, Lukas Fleischer <archlinux@cryptocrack.de> wrote:
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> --- web/template/pkg_details.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index de398d8..d8d1e4b 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -59,9 +59,9 @@ $license = empty($row['License']) ? $msg : $row['License']; $urlpath = URL_DIR . substr($row['Name'], 0, 2) . "/" . $row['Name'];
# 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"]));
# Save package dependencies, "required by" and sources $deps = package_dependencies($row["ID"]); -- 1.7.7.2