Bug #67077 [Com]: Error timezone offset when trying to set the time zone EET
| From: | mtymek at gmail dot com | Date: | Wed, 09 Dec 2015 14:01:19 +0000 |
| Subject: | Bug #67077 [Com]: Error timezone offset when trying to set the time zone EET | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197737@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67077&edit=1
ID: 67077
Comment by: mtymek at gmail dot com
Reported by: dvb2504 at gmail dot com
Summary: Error timezone offset when trying to set the time
zone EET
Status: Open
Type: Bug
Package: Date/time related
Operating System: Linux
PHP Version: 5.5.11
Block user comment: N
Private report: N
New Comment:
I have a similar issue when setting "CEST" as a timezone. As of PHP v5.5.10, setting
timezone to CEST will result in different timestamp stored internally. Possibly it is the same
issue.
See https://3v4l.org/kuXoW
Previous Comments:
------------------------------------------------------------------------
[2014-04-15 06:20:26] dvb2504 at gmail dot com
Description:
------------
When trying to set the time zone EET, we got offset +2 but expext +3.
The bug is in all versions since 5.5.10.
http://3v4l.org/0M1S9#v542
Test script:
---------------
<?php
date_default_timezone_set('EET');
$date = new DateTime();
var_dump($date);
$date->setTimezone(new DateTimeZone('EET'));
var_dump($date);
Expected result:
----------------
object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-04-09 12:23:44"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "EET"
}
object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-04-09 12:23:44"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "EET"
}
Actual result:
--------------
object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-04-09 12:23:44"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "EET"
}
object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-04-09 11:23:44"
["timezone_type"]=>
int(2)
["timezone"]=>
string(3) "EET"
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67077&edit=1