ID: 37137
Updated by: [EMAIL PROTECTED]
Reported By: eyglys at yahoo dot com dot br
-Status: Feedback
+Status: Bogus
Bug Type: Date/time related
Operating System: Linux
PHP Version: 5.1.2
New Comment:
Probably America/Sao_Paulo, and for that timezone there is indeed no
00:00 on Sun 16 Oct 2006 as you switch to BRST from BST on this date.
After Sat 15 oct 23:59:59 BRT the next second is Sun 16 oct 01:00:00
BRST:
America/Sao_Paulo Sun Feb 20 02:00:00 2005 UTC = Sat Feb 19 23:00:00
2005 BRT isdst=0 gmtoff=-10800
America/Sao_Paulo Sun Oct 16 02:59:59 2005 UTC = Sat Oct 15 23:59:59
2005 BRT isdst=0 gmtoff=-10800
America/Sao_Paulo Sun Oct 16 03:00:00 2005 UTC = Sun Oct 16 01:00:00
2005 BRST isdst=1 gmtoff=-7200
America/Sao_Paulo Sun Feb 19 01:59:59 2006 UTC = Sat Feb 18 23:59:59
2006 BRST isdst=1 gmtoff=-7200
Previous Comments:
------------------------------------------------------------------------
[2006-04-19 19:33:23] [EMAIL PROTECTED]
Might not be a bug... what timezone are you in? (check phpinfo()
output, the date section)
------------------------------------------------------------------------
[2006-04-19 19:29:09] eyglys at yahoo dot com dot br
Description:
------------
Using mktime to make date 2006-10-15 00:00:00 , produce 2006-10-15
01:00:00
Reproduce code:
---------------
<?
$date = mktime(0,0,0,10,15,2006);
echo date("Y-m-d H:i:s",$date);
?>
Expected result:
----------------
2006-10-15 00:00:00
Actual result:
--------------
2006-10-15 01:00:00
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37137&edit=1