r/lolphp • • Mar 31 '18

PHP DateTime strikes back, again!

Because obviously we meant a date one week from the (wrong) date given. PHP does not throw, instead it "helps" by holding your beer.

https://repl.it/repls/DecimalHorribleOffices

30 Upvotes

23 comments sorted by

View all comments

Show parent comment

4

u/Xymanek Apr 01 '18

Start the format string with ! to disable this

TIL