Bug #15620 Updated: problem with 2002-03-31
| From: | derick@php.net | Date: | Tue, 19 Feb 2002 12:00:01 +0000 |
| Subject: | Bug #15620 Updated: problem with 2002-03-31 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-569@lists.php.net to get a copy of this message | ||
ID: 15620
Updated by: derick@php.net
Reported By: martinradu@hotmail.com
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: windows me
PHP Version: 4.1.1
New Comment:
Not a bug, it's daylight savings time. Use gmdate and gmmktime.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-02-19 06:58:50] martinradu@hotmail.com
<?
$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