|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-28 23:41 UTC] tony2001@php.net
[2006-03-29 00:05 UTC] alan dot whitney at sephone dot com
[2006-03-29 18:44 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 11:00:02 2025 UTC |
Description: ------------ When you use strtotime on 1143522000 it returns a timestamp 6 years eariler. It seems to be if the string falls on the format HHMMSSYYYY and HH is above 10 and SS is above 37 it will parse it out to be the time in the string(HHMMSS), today's date and the year (YYYY) in the string. Reproduce code: --------------- $mktime = mktime(0,0,0, 3, 28, 2006); $return = strtotime($mktime); if ($return === false) { echo "Nothing"; } else { echo date("r", $return); } Expected result: ---------------- Nothing Actual result: -------------- Tue, 28 Mar 2000 11:43:52 -0500