Skip to content

Commit

Permalink
Merge pull request #13 from cmyker/timezone-fix
Browse files Browse the repository at this point in the history
setting date_default_timezone_set() has no effect
  • Loading branch information
Florian Körner committed Mar 7, 2016
2 parents 2fc2008 + b48e7e5 commit 6dbb610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Checkdomain/Holiday/Provider/AbstractEaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected function getEasterDates($year)
{
$easterSunday = new \DateTime('21.03.'.$year);
$easterSunday->modify(sprintf('+%d days', easter_days($year)));
$easterSunday->setTimezone(new \DateTimeZone(ini_get('date.timezone')));
$easterSunday->setTimezone(new \DateTimeZone(date_default_timezone_get()));

$easterMonday = clone $easterSunday;
$easterMonday->modify('+1 day');
Expand Down

0 comments on commit 6dbb610

Please sign in to comment.