Bug #51824 [Com]: date('I') always return '0' in Windows

From: Date: Thu, 20 May 2010 17:05:12 +0000
Subject: Bug #51824 [Com]: date('I') always return '0' in Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150671@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51824&edit=1

 ID:               51824
 Comment by:       ng4rrjanbiah at rediffmail dot com
 Reported by:      ng4rrjanbiah at rediffmail dot com
 Summary:          date('I') always return '0' in Windows
 Status:           Open
 Type:             Bug
 Package:          Date/time related
 Operating System: Windows XP
 PHP Version:      5.3.2

 New Comment:

Bump! Anyone?


Previous Comments:
------------------------------------------------------------------------
[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


Thread (9 messages)

« previous php.bugs (#150671) next »