Bug #10907 Updated: date() bug...
| From: | rasmus@php.net | Date: | Wed, 16 May 2001 18:23:53 +0000 |
| Subject: | Bug #10907 Updated: date() bug... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55520@lists.php.net to get a copy of this message | ||
ID: 10907
Updated by: rasmus
Reported By: skysign@dreamwiz.com
Old-Status: Open
Status: Closed
Bug Type: Date/time related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Please read the documentation more closely. The t modifier is the number of days in the month so 31
is indeed correct.
Previous Comments:
---------------------------------------------------------------------------
[2001-05-16 14:21:16] skysign@dreamwiz.com
date() function does not work well
this code shown the date() function bug...
<?
$date = date("Y.m.t");
echo $date;
?>
Result of above code is only "2001.05.31".
it's incorrect... correct result is "2001.5.17"
linux console command "date" work correctly...
===========================================================
My php Configure Line
./configure' '--with-apache=/usr/local/src/apache_1.3.19'
'--with-sybase=/usr/local/freetds' '--enable-track-vars'
'--disable-debug' '--enable-sysvsem' '--enable-sysvshm'
'--enable-shmop'
===========================================================
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10907&edit=2