|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-18 07:17 UTC] jani@php.net
[2009-08-18 08:46 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 15:00:01 2025 UTC |
Description: ------------ date('Y') display error, print: 0000 Reproduce code: --------------- <?php echo date('y-m-d H:i:s'); echo date('Y-m-d H:i:s'); echo date('ymd'); echo date('Y'); echo date('y'); echo time(); echo date('Y-m-d', time()); echo date('y-m-d', time()); ?> Expected result: ---------------- 09-08-18 13:18:36 2009-08-18 13:18:36 090818 2009 09 1250572716 2009-08-18 09-08-18 Actual result: -------------- 09-08-18 13:18:13 0000-08-18 13:18:13 090818 0000 09 1250572693 0000-08-18 09-08-18