Bug #15005 Updated: Date bug with two and four digit year

From: Date: Sat, 02 Feb 2002 11:35:27 +0000
Subject: Bug #15005 Updated: Date bug with two and four digit year
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78857@lists.php.net to get a copy of this message
ID: 15005 Updated by: sander@php.net Reported By: shellum@amirani.com Status: Feedback Bug Type: Date/time related Operating System: Windows2000 PHP Version: 4.1.1 New Comment: No feedback was provided for this bug, so it is being suspended. If you are able to provide the information that was requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2002-01-11 21:22:40] mfischer@php.net Can't reproduce this on command line: C:\php\php-4.1.1-Win32>php -q <? echo date('Y'); ?> ^Z 2002 C:\php\php-4.1.1-Win32>php -q <? echo date('y'); ?> ^Z 02 C:\php\php-4.1.1-Win32> Please test this on your system too. I still bet something is configured wrong on your system. ------------------------------------------------------------------------ [2002-01-11 20:04:24] shellum@amirani.com I didn't see this bug posted, and I know that it worked fine in all my scripts in 2001. In 2002, it displays 2011 instead of 2002 for the year example : date("Y"); or date("y") will return "2011" or "11" instead of "2002" or "02" I'm using Windows 2000 with service pack 2 PHP 4.1.1 win32 binaries un-modified downloaded direct from php.net on Microsoft's Personal Web Server that came with Windows98 SE. Loading on IE 5.5. Thanks --Cameron Sellum ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15005&edit=1

« previous php.dev (#78857) next »