|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-03-18 20:12 UTC] n at tebru dot net
[2020-03-19 07:54 UTC] cmb@php.net
[2020-03-19 07:54 UTC] cmb@php.net
-Status: Open
+Status: Closed
[2020-03-19 07:55 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ When using DateTime::setTime() and setting the time to a time that doesn't exist (during a DST jump forward), the timestamp is correct, but the hour does not move forward. Test script: --------------- $tz = new DateTimeZone('America/Chicago'); $date = new DateTime('2020-03-08 01:00:00', $tz); $date->setTime(2,0); var_dump($date->format(DateTime::ATOM)); Expected result: ---------------- string(25) "2020-03-08T03:00:00-05:00" Actual result: -------------- string(25) "2020-03-08T02:00:00-05:00"