#37137 [Fbk->Bgs]: mktime 2006-10-15 bug

From: Date: Wed, 19 Apr 2006 19:36:23 +0000
Subject: #37137 [Fbk->Bgs]: mktime 2006-10-15 bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96011@lists.php.net to get a copy of this message
ID: 37137 Updated by: derick@php.net 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] derick@php.net 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

« previous php.bugs (#96011) next »