Edit report at https://bugs.php.net/bug.php?id=64294&edit=1
ID: 64294
Comment by: mail+php at requinix dot net
Reported by: ybrigant at gmail dot com
Summary: date conversion problem when dst present
Status: Open
Type: Bug
Package: Date/time related
Operating System: linux debian
PHP Version: 5.3.22
Block user comment: N
Private report: N
New Comment:
DST in Europe ends at 2013-10-27 01:00.
By the way, Unix timestamps don't have timezones.
Previous Comments:
------------------------------------------------------------------------
[2013-02-25 10:42:18] ybrigant at gmail dot com
Sorry, I forgot to add that timestamp provided is in utc timezone.
------------------------------------------------------------------------
[2013-02-25 09:55:35] ybrigant at gmail dot com
Description:
------------
COnversion of an utc timestamp to a date in a scpecific timezone, ie
EUrope/Paris where we have dst activated in the date example...
Test script:
---------------
$timestamp = 1382954400;
$date = new \DateTime('@'.$timestamp);
$tz = new \DateTimeZone('Europe/Paris');
$date->setTimezone($tz);
return $date->format(Y-m-d H:i');
Expected result:
----------------
2013-10-28 12:00
Actual result:
--------------
2013-10-28 11:00
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64294&edit=1