|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-23 07:10 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 20:00:01 2025 UTC |
Description: ------------ strtotime still fails (as of version 4.3.8) to appropriately parse dates prior to 1-1-1970 in Windows builds. Reproducable with dates in various formats: MM/DD/YYYY, DD/MM/YYYY, YYYY-MM-DD. Validation/conversion of dates prior to 1970 are frequently needed for applications that accept user input for birthdates. Reproduce code: --------------- print strtotime('04/28/1964'); print strtotime('4/28/64'); print strtotime('1964-04-28'); print strtotime('28/4/1964'); Expected result: ---------------- expect timestamps with the appropriate value (instead of -1); Actual result: -------------- -1 -1 -1 -1