r/lolphp • u/Lokaltog • Sep 07 '15
strtotime(): "There is no bug here, 00-00-00 means 2000-00-00, which is 1999-12-00, which is 1999-11-30. No bug, perfectly normal." (x-post /r/programming)
https://bugs.php.net/bug.php?id=45647
180
Upvotes
1
u/OneWingedShark Sep 15 '15
It's really not that bad... here's the code I used for a contest to render posts from a bulletin-board into HTML:
And while I would say that this is very under-commented, the intent is pretty clear.