Skip to content

Commit e80825e

Browse files
committed
Fix EOL dates DateTime constructor bug. $detail['date'] is a Unix timestamp
and not a formated date. My mistake.
1 parent e939201 commit e80825e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
foreach ($branches as $branch => $detail) {
4242
try {
4343
$now = new DateTime;
44-
$then = new DateTime($detail['date']);
44+
$then = new DateTime('@'.$detail['date']);
4545
$diff = $now->diff($then);
4646
$times = array();
4747
if ($diff->y) {

0 commit comments

Comments
 (0)