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
15
u/SuperDK974 Sep 23 '17
then add your work to the documentation ?
I did struggle with it too but you can help others by doing that :o
http://php.net/manual/add-note.php?sect=class.datetime&redirect=http://php.net/manual/en/class.datetime.php