Edit report at http://bugs.php.net/bug.php?id=51824&edit=1
ID: 51824 Updated by: der...@php.net Reported by: ng4rrjanbiah at rediffmail dot com Summary: date('I') always return '0' in Windows Status: Feedback Type: Bug Package: Date/time related Operating System: Windows XP PHP Version: 5.3.2 Assigned To: derick New Comment: Please provide expected and actual output. Previous Comments: ------------------------------------------------------------------------ [2010-05-21 16:41:20] ng4rrjanbiah at rediffmail dot com @derik: Since, it's under loop, it may not make sense to put all outputs. However, if it's really needed, I can provide. But, please check that the "I" specifier always returns 0 in Windows (that means, it doesn't handle DST-Daylight Saving correctly). Just run the script in Linux and Windows parallel and you'll notice the problem. ------------------------------------------------------------------------ [2010-05-20 21:34:35] der...@php.net Please provide expected and actual output. ------------------------------------------------------------------------ [2010-05-20 19:51:59] paj...@php.net Derick, what was the issue behind this specifier? ------------------------------------------------------------------------ [2010-05-20 19:05:11] ng4rrjanbiah at rediffmail dot com Bump! Anyone? ------------------------------------------------------------------------ [2010-05-14 17:04:36] ng4rrjanbiah at rediffmail dot com Description: ------------ date('I') always return 0 in Windows; but returns according to DST in Linux Note: found http://bugs.php.net/13900 which is filed for PHP4 and flagged as "bogus" Test script: --------------- <?php date_default_timezone_set('Pacific/Apia'); $time = strtotime('2006-02-01 23:00:00'); for ($t = $time; $t < ($time + 1000000000); $t+= 100000) { echo date("Y-m-d H:i:s I T Z", $t) , "\n"; } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51824&edit=1