ID: 31768 Updated by: [EMAIL PROTECTED] Reported By: df at df-web dot hu -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Linux PHP Version: 4.3.10 New Comment:
We are happy to tell you that you just discovered Daylight Savings Time. For more information see: http://webexhibits.org/daylightsaving/b.html Instead of using mktime/date consider using gmmktime and gmdate which do not suffer from DST. . Previous Comments: ------------------------------------------------------------------------ [2005-01-30 22:53:10] df at df-web dot hu Description: ------------ When I calculatethe 2005-10-31 date whith the script above, it will write out wrong date! That is valable just for 2005-10-31!!! Reproduce code: --------------- <?php $k1=date("d",(strtotime(2005-10-28)+3*86400)); echo $k1."\n" ;// = 30 but must be 31 ? Expected result: ---------------- 31 Actual result: -------------- 30 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31768&edit=1