Skip to content

Commit

Permalink
Fix EOL dates DateTime constructor bug. $detail['date'] is a Unix tim…
Browse files Browse the repository at this point in the history
…estamp

and not a formated date. My mistake.
  • Loading branch information
srgoogleguy committed Nov 23, 2013
1 parent e939201 commit e80825e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eol.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
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) {
Expand Down

0 comments on commit e80825e

Please sign in to comment.