|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2019-03-22 21:56 UTC] fyrye3 at gmail dot com
  [2019-03-22 22:10 UTC] fyrye3 at gmail dot com
  [2021-04-06 19:54 UTC] derick@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: derick
  [2021-04-06 19:54 UTC] derick@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 20:00:01 2025 UTC | 
Description: ------------ PHP seems to run into an infinite loop when add() is run and it adjusts to the DST change, but when it arrives at the time again, it reset back an hour for infinite amount of times. Test script: --------------- $date = new DateTime('2016-11-05 22:00:00', new DateTimeZone('America/New_York')); foreach(range(1,48) as $i) { echo $date->format('Y/m/d H:i')."<br/>"; $date->add(new DateInterval('PT15M')); } Actual result: -------------- 2016/11/05 22:00 2016/11/05 22:15 2016/11/05 22:30 2016/11/05 22:45 2016/11/05 23:00 2016/11/05 23:15 2016/11/05 23:30 2016/11/05 23:45 2016/11/06 00:00 2016/11/06 00:15 2016/11/06 00:30 2016/11/06 00:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45 2016/11/06 01:00 2016/11/06 01:15 2016/11/06 01:30 2016/11/06 01:45