From e80825e1c16de218febe4a7351088f04aa52edbe Mon Sep 17 00:00:00 2001 From: Sherif Ramadan Date: Fri, 22 Nov 2013 20:20:07 -0500 Subject: [PATCH] Fix EOL dates DateTime constructor bug. $detail['date'] is a Unix timestamp and not a formated date. My mistake. --- eol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eol.php b/eol.php index 6f0cd49ee..4d5c7449d 100644 --- a/eol.php +++ b/eol.php @@ -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) {