diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-05-16 11:22:45 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-05-16 11:22:45 +0200 |
commit | 7c88d4c6970bec76bb4b6d6b0f9baaf6ae59aee2 (patch) | |
tree | bebea4ed15f2dffb6fdd956e41b2f101d9b3d978 | |
parent | 8ad1266d2ef409e50204410963666cd8506af59c (diff) |
checkpkgist: always display release date
-rwxr-xr-x | checkpkgist.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checkpkgist.php b/checkpkgist.php index 4d39f1b..5b772b1 100755 --- a/checkpkgist.php +++ b/checkpkgist.php @@ -76,8 +76,8 @@ foreach ($pkgs as $name => $rpm) { if (strpos($pkver, 'dev') !== false) { continue; } + $date = new DateTime($pkg['time']); if (version_compare($pkver, $rpmver, 'gt')) { - $date = new DateTime($pkg['time']); $diff = $date->diff(new DateTime("now")); if ($diff->days <2) { $note = "(Just released)"; @@ -97,7 +97,7 @@ foreach ($pkgs as $name => $rpm) { break; } else if (version_compare($pkver, $rpmver, 'eq') && $verb) { - printf(" %-40s %15s %15s\n", $rpm, $rpmver, $pkver); + printf(" %-40s %15s %15s %15s\n", $rpm, $rpmver, $pkver, $date->format("Y-m-d")); break; } } |