Commit:    e80825e1c16de218febe4a7351088f04aa52edbe
Author:    Sherif Ramadan <[email protected]>         Fri, 22 Nov 2013 20:20:07 
-0500
Parents:   e939201949dda8510105a4d38e01f55e3679fc4e
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=e80825e1c16de218febe4a7351088f04aa52edbe

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

Reply via email to