|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-01 23:13 UTC] vipm at mac dot com
In PHP 4.0.6 for Linux and MacOSX, strtotime() and mktime() functions produce correct output for dates before 1970, but in Windows98 and Windows2000, I get an error (-1), e.g., strtotime("1965-3-12")
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 07:00:01 2025 UTC |
Definitely a bug. Folks normally use strtotime() to rearrange dates input by a user into a usable date. Ubiquitous Dreamweaver codes: date("Y-m-d",strtotime($theValue)) to format all user-input dates. There isn't a calendar function you can use as a work-around (as rasmus suggested). Martin