checkdomain / Holiday

Check whether a date is a holiday
www.checkdomain.de
MIT License
49 stars 27 forks source link

setting date_default_timezone_set() has no effect #13

Closed cmyker closed 8 years ago

cmyker commented 8 years ago

On my production server the timezone is not set in php.ini, but it is set per application in this way

date_default_timezone_set('Europe/Berlin');

But it has no effect when you initialize timezone like this

new \DateTimeZone(ini_get('date.timezone'))
cmyker commented 8 years ago

Also it produces an exception that timezone object is not created and null injected inside constructor.

FlorianKoerner commented 8 years ago

Thank you!

larsbo commented 7 years ago

I just forked the repo to make the same pull request because the composer package misses this fix. Can you provide a new composer version of this package?

BenjaminPaap commented 7 years ago

👍 thanks for that hint. A new version was tagged recently.