Merge pull request #54 from insiders/feature/leapyearbug

Fix for leapyearbug test
This commit is contained in:
Shaun 2015-01-09 23:12:32 -05:00
commit be7de6ad27

View File

@ -442,12 +442,8 @@ class DateUtil
public static function hasLeapYearBug()
{
$leapBugTest = \DateTime::createFromFormat('z Y', '80 2016');
if ($leapBugTest->format('Y-m-d') == '2016-03-22') {
return true;
}
return false;
$leapBugTest = \DateTime::createFromFormat('Y-m-d', '2016-03-21');
return $leapBugTest->format('z') != '80';
}
/**