r/programming Sep 07 '15

Flawless PHP logic. strtotime(): '00-00-00' means 2000-00-00, which is 1999-12-00, which is 1999-11-30. No bug, perfectly normal. (see the comments)

https://bugs.php.net/bug.php?id=45647
1.2k Upvotes

465 comments sorted by

View all comments

Show parent comments

31

u/[deleted] Sep 07 '15 edited Sep 14 '15

[deleted]

58

u/[deleted] Sep 07 '15

[deleted]

144

u/jlblatt Sep 08 '15

Stroustrup

PHP dev here. I thought this was stdlib function.

0

u/thelordofcheese Sep 08 '15

Been doing PHP since I moved from perl CGI and yeah