Bug #67559 [NEW]: Incorrect timezone MSK

From: Date: Thu, 03 Jul 2014 10:12:27 +0000
Subject: Bug #67559 [NEW]: Incorrect timezone MSK
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186442@lists.php.net to get a copy of this message
From: sabo at devpreview dot ru Operating system: Debian Wheezy 7.5 PHP version: 5.4.30 Package: Date/time related Bug Type: Bug Bug description:Incorrect timezone MSK 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 bug report at https://bugs.php.net/bug.php?id=67559&edit=1 --

« previous php.bugs (#186442) next »