mirror of
https://github.com/simshaun/recurr.git
synced 2025-01-18 00:18:27 +01:00
Merge pull request #54 from insiders/feature/leapyearbug
Fix for leapyearbug test
This commit is contained in:
commit
be7de6ad27
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user