Bug #67559 [Opn->Nab]: Incorrect timezone MSK
| From: | heiglandreas@php.net | Date: | Sun, 19 Mar 2017 11:36:59 +0000 |
| Subject: | Bug #67559 [Opn->Nab]: Incorrect timezone MSK | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207949@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67559&edit=1
ID: 67559
Updated by: heiglandreas@php.net
Reported by: sabo at devpreview dot ru
Summary: Incorrect timezone MSK
-Status: Open
+Status: Not a bug
Type: Bug
Package: Date/time related
Operating System: Debian Wheezy 7.5
PHP Version: 5.4.30
Block user comment: N
Private report: N
New Comment:
According to https://github.com/eggert/tz/blob/c040ac6cb98d8c564a67e37468512d3e0447080b/europe#L796
the offset is +03:00 for MSK.
And according to https://3v4l.org/UL7bR that's what the
output for both inputs are.
Previous Comments:
------------------------------------------------------------------------
[2014-07-03 10:12:26] sabo at devpreview dot ru
Description:
------------
Incorrect time offset for MSK timezone.
Test script:
---------------
$d = new DateTime('2014-07-03T14:03:25', new DateTimeZone('MSK'));
echo $d->format(DateTime::W3C) . PHP_EOL;
// Output: 2014-07-03T14:03:25+04:00
$d = DateTime::createFromFormat('Y-m-d\TH:i:s T', '2014-07-03T14:03:25 MSK');
echo $d->format(DateTime::W3C) . PHP_EOL;
// Output: 2014-07-03T14:03:25+03:00
Expected result:
----------------
2014-07-03T14:03:25+04:00
2014-07-03T14:03:25+04:00
Actual result:
--------------
2014-07-03T14:03:25+04:00
2014-07-03T14:03:25+03:00
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67559&edit=1