ID: 15620
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Date/time related
Operating System: windows me
PHP Version: 4.1.1
New Comment:
... or "mktime(12,0,0,...)"
Previous Comments:
------------------------------------------------------------------------
[2002-02-19 07:00:01] [EMAIL PROTECTED]
Not a bug, it's daylight savings time. Use gmdate and gmmktime.
Derick
------------------------------------------------------------------------
[2002-02-19 06:58:50] [EMAIL PROTECTED]
<?
$srez= date ("d-m-Y", mktime (0,0,0,3,1+29,2002));
echo "<br>".$srez;
$srez= date ("d-m-Y", mktime (0,0,0,3,1+30,2002));
echo "<br>".$srez;
echo phpinfo();
?>
The result is
30-03-2002
30-03-2002
and should be
30-03-2002
31-03-2002
Please tell us how can we solve this problem
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15620&edit=1