#22018 [NEW]: daylight savings time parameter works wrong
| From: | k.schroeder@php.net | Date: | Sun, 02 Feb 2003 21:27:37 +0000 |
| Subject: | #22018 [NEW]: daylight savings time parameter works wrong | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-31907@lists.php.net to get a copy of this message | ||
From: k.schroeder@php.net
Operating system: Windows 2000 Server
PHP version: 4CVS-2003-02-02 (stable)
PHP Bug Type: Date/time related
Bug description: daylight savings time parameter works wrong
ext/standard/tests/time/003.phpt fails on W2k server:
diff:
008- 2000-05-29 13:00:00
008+ 2000-05-29 12:00:00
009- 2000-05-29 12:00:00
009+ 2000-05-29 11:00:00
014- 2000-04-29 13:00:00
014+ 2000-04-29 12:00:00
015- 2000-04-29 12:00:00
015+ 2000-04-29 11:00:00
coresponding lines:
echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,0))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,1))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,0))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,1))."\n";
this lines produce the expected result:
echo date("Y-m-d H:i:s", mktime(12,0,0,3,+90,2000,-1))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,-1))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,0))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-90,2000,1))."\n";
echo date("Y-m-d H:i:s", mktime(12,0,0,5,-1,2000,-1))."\n";
--
Edit bug report at http://bugs.php.net/?id=22018&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22018&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22018&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22018&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22018&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22018&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22018&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22018&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22018&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22018&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22018&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22018&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22018&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22018&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22018&r=gnused