|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-11 03:26 UTC] alan at akbkhome dot com
[2003-11-11 21:59 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Description: ------------ I realise you've been making changes to strtotime() in PHP (I'm in Mac OS 9.1 - can't run a CVS copy), but you may still want to check to see what the new version makes of date strings with no day specified (someone tried to use such a string on my site) - I'm getting a timestamp from an unrelated day several years into the future. See the code specified. Reproduce code: --------------- echo strtotime("Oct 2001"); Expected result: ---------------- Not sure. Either -1, or the timestamp for 1st October 2001 - probably the latter. Actual result: -------------- 1237737600 this gives: 07:16 am: *** Unix time "1237737600": Sunday, March 22, 2009 @ 04:00:00 pm