ID: 36985 Updated by: [EMAIL PROTECTED] Reported By: fear dot the dot golgota at gmail dot com -Status: Open +Status: Feedback Bug Type: Date/time related Operating System: Linux Suse 9.3 professional PHP Version: 5.1.2 New Comment:
what does the following code show: <?php echo date_default_timezone_get(); ?> I can not reproduce this here, I get: 828234000<br>828234000<br><br>828237600<br>828237600<br><br>828234000<br>828234000<br><br>828237600<br>828241200<br> Previous Comments: ------------------------------------------------------------------------ [2006-04-05 13:56:05] fear dot the dot golgota at gmail dot com Description: ------------ According to documentation, setting is_dst to -1 can cause unexpected (but not incorrect) results. The result below demostrates the behavior of mktime or the documentation is wrong. Anyway it's better to explain why the is_dst paramater is deprecated since php 5.1.0. I check gmmktime, and the result is the same! Reproduce code: --------------- echo (mktime(2,0,0,3,31,1996,1)),"<br>"; echo (mktime(3,0,0,3,31,1996,1)),"<br><br>"; echo (mktime(2,0,0,3,31,1996,0)),"<br>"; echo (mktime(3,0,0,3,31,1996,0)),"<br><br>"; echo (mktime(2,0,0,3,31,1996,-1)),"<br>"; echo (mktime(3,0,0,3,31,1996,-1)),"<br><br>"; echo (gmmktime (2,0,0,3,31,1996)),"<br>"; echo (gmmktime (3,0,0,3,31,1996)),"<br>"; Expected result: ---------------- 4 blocks with 2 numbers. In each block, the pair of numbers must be different! Actual result: -------------- 828230400 828234000 828234000 828237600 828234000 828234000 828241200 828241200 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36985&edit=1