|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-02-25 10:42 UTC] ybrigant at gmail dot com
[2013-02-27 01:26 UTC] mail+php at requinix dot net
[2013-02-27 01:28 UTC] mail+php at requinix dot net
[2013-11-27 17:26 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2013-11-27 17:26 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
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