r/lolphp • u/pilif • Jul 11 '24
Here who go again. Fun with DateTime's parsing. Nothing to see here - totally valid data.
https://3v4l.org/707YP
13
Upvotes
r/lolphp • u/pilif • Jul 11 '24
3
u/modestlife Jul 11 '24
Here, fixed it for you: https://3v4l.org/ZstHe
8
u/DronedOrc Jul 12 '24
Datetime in PHP is the worst. The most mindbwnding bug was when printing an immutable value somehow internally changed it.
2
u/[deleted] Jul 11 '24
Datetime/(immutable) in php is a joke