com web/php: Fix EOL dates DateTime constructor bug. $detail['date'] is a Unix timestamp and not a formated date. My mistake.: eol.php

From: Date: Sat, 23 Nov 2013 01:20:07 +0000
Subject: com web/php: Fix EOL dates DateTime constructor bug. $detail['date'] is a Unix timestamp and not a formated date. My mistake.: eol.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-22439@lists.php.net to get a copy of this message
Commit: 94f87080355649afc08cb7512514c7eafb59678c Author: Sherif Ramadan <googleguy@php.net> 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) {

« previous php.webmaster (#22439) next »