ID: 49283 Updated by: j...@php.net Reported By: ht0315 at gmail dot com -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: Solaris 10 sparc PHP Version: 5.2.10 New Comment:
Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ I can not reproduce this. date('Y') outputs 2009 for me. Previous Comments: ------------------------------------------------------------------------ [2009-08-18 05:42:25] ht0315 at gmail dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49283&edit=1