|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-10-12 09:00 UTC] stas@php.net
-Package: PHP Language Specification
+Package: Calendar related
[2015-10-12 09:21 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2015-10-12 09:21 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 00:00:02 2025 UTC |
Description: ------------ When using the date function, I have a problem, set up a date 2099/3/31, the results in the conversion of PHP $t = '2099-3-31 0:0:0'; $time = strtotime($t); echo $time.': '.date('Y-m-d H:i:s', $time).'<br>'; The result of echo is 00:00:00 1970-01-01 Test script: --------------- $t = '2099-3-31 0:0:0'; $time = strtotime($t); echo $time.': '.date('Y-m-d H:i:s', $time).'<br>'; Expected result: ---------------- [echo]The result of echo is 1970-01-01 00:00:00 Actual result: -------------- 2099-3-31 0:0:0