1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Fix EOL dates DateTime constructor bug. $detail['date'] is a Unix timestamp

and not a formated date. My mistake.
This commit is contained in:
Sherif Ramadan
2013-11-22 20:20:07 -05:00
parent e939201949
commit e80825e1c1

View File

@@ -41,7 +41,7 @@ site_header('Unsupported Branches');
foreach ($branches as $branch => $detail) {
try {
$now = new DateTime;
$then = new DateTime($detail['date']);
$then = new DateTime('@'.$detail['date']);
$diff = $now->diff($then);
$times = array();
if ($diff->y) {