[aur-dev] [PATCH 5/5] pkg_details.php: Use sane format for date strings
Dan McGee
dpmcgee at gmail.com
Fri Nov 4 11:25:12 EDT 2011
On Fri, Nov 4, 2011 at 8:42 AM, Lukas Fleischer
<archlinux at 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 at cryptocrack.de>
Signed-off-by: Dan McGee <dan at 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
>
>
More information about the aur-dev
mailing list