From:
Operating system: Windows XP
PHP version: 5.3.2
Package: Date/time related
Bug Type: Bug
Bug description:date('I') always return '0' in Windows
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 bug report at http://bugs.php.net/bug.php?id=51824&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=51824&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=51824&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=51824&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=51824&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=51824&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=51824&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=51824&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=51824&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=51824&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=51824&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=51824&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=51824&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=51824&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=51824&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51824&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51824&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=51824&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=51824&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=51824&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=51824&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=51824&r=mysqlcfg
