Bug #1750: function date() formatting is broken

From: Date: Tue, 20 Jul 1999 15:56:06 +0000
Subject: Bug #1750: function date() formatting is broken
Groups: php.dev 
Request: Send a blank email to php-dev+get-8772@lists.php.net to get a copy of this message
From: dmf14@cornell.edu Operating system: Linux 2.2.10 (RedHat 6.0) i686 PHP version: 4.0 Beta 1 PHP Bug Type: Misbehaving function Bug description: function date() formatting is broken The special character 'g' is not recognized as a formatter for the date function anymore... In, PHP3, it was defined as: g - hour, 12-hour format without leading zeros; i.e. "1" to "12" but it no longer works. 'm','d', 'Y', 'i', 's', and 'a' seem to work fine, though. The following script will output "07.20.99 g:54:02 am", for example. <? $today = date("m.d.Y g:i:s a"); echo "$today<br><br>\n"; ?> FYI, my configure line was: ./configure --with-apxs=/usr/sbin/apxs --with-mysql --enable-track-vars

« previous php.dev (#8772) next »