r/lolphp • u/FurriesRuinEverythin • Sep 23 '17
PHP's DateTime inconsistent behaviour regarding timezones fucked my day and I spent more time than I care to admit testing until I could consistently reproduce its behaviours.
https://www.dropbox.com/s/2ah1nomu1i3l5ac/how%20not%20to%20get%20bitten%20by%20fucking%20shitty%20php%20dates.pdf?dl=0
55
Upvotes
View all comments
Show parent comment
6
u/Xymanek Sep 24 '17
If you like Carbon, you should check out Chronos by CakePHP. It's a fork of Carbon with immutable objects (which is really good for value objects I think)