Commit: 94f87080355649afc08cb7512514c7eafb59678c Author: Sherif Ramadan <[email protected]> Fri, 22 Nov 2013 20:20:07 -0500 Parents: 3ba4998b7cd5a2f8253d0ab3094c4b3f47a1969b Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=94f87080355649afc08cb7512514c7eafb59678c Log: Fix EOL dates DateTime constructor bug. $detail['date'] is a Unix timestamp and not a formated date. My mistake. Changed paths: M eol.php Diff: diff --git a/eol.php b/eol.php index 6f0cd49..4d5c744 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) { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
