#48178 [Com]: Error in test DateTimeZone_getOffset_basic1.phpt
| From: | tobias dot john at fondsnet dot de | Date: | Thu, 07 May 2009 10:55:46 +0000 |
| Subject: | #48178 [Com]: Error in test DateTimeZone_getOffset_basic1.phpt | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136923@lists.php.net to get a copy of this message | ||
ID: 48178
Comment by: tobias dot john at fondsnet dot de
Reported By: tobias dot john at fondsnet dot de
Status: Open
Bug Type: Date/time related
Operating System: All
PHP Version: 5.3.0RC1
New Comment:
Ups sorry. Postet the wrong patch.
This is the correct one.
--- DateTimeZone_getOffset_basic1.phpt.orig 2009-05-07
12:30:07.000000000 +0200
+++ DateTimeZone_getOffset_basic1.phpt 2009-05-07 12:30:53.000000000
+0200
@@ -27,7 +27,7 @@
===DONE===
--EXPECTF--
*** Testing DateTimeZone::getOffset() : basic functionality ***
-int(0)
+%rint\(0\)|int\(3600\)%r
%rint\(-18000\)|int\(-14400\)%r
%rint\(-28800\)|int\(-25200\)%r
===DONE===
Previous Comments:
------------------------------------------------------------------------
[2009-05-07 10:37:38] tobias dot john at fondsnet dot de
Here is a patch.
--- DateTimeZone_getOffset_basic1.phpt.orig 2009-05-07
12:30:07.000000000 +0200
+++ DateTimeZone_getOffset_basic1.phpt 2009-05-07 12:30:53.000000000
+0200
@@ -27,7 +27,7 @@
===DONE===
--EXPECTF--
*** Testing DateTimeZone::getOffset() : basic functionality ***
-int(0)
+%rint(0\)|int\(3600)%r
%rint\(-18000\)|int\(-14400\)%r
%rint\(-28800\)|int\(-25200\)%r
===DONE===
------------------------------------------------------------------------
[2009-05-07 10:28:57] tobias dot john at fondsnet dot de
Description:
------------
The Europe/London timezone switched to daylight saving.
See: http://www.convertunits.com/time/zone/Europe/London
The GMT timezone has no daylight saving.
So the offset of the Europe/London timezone ist either 0 or 3600 not
always 0.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48178&edit=1