File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ Release Date: Unreleased
1414BREAKING
1515********
1616
17+ - In previous versions, when comparing dates with ``Time::difference() ``,
18+ unexpected results were returned if the date included a day different from 24
19+ hours due to Daylight Saving Time (DST). This bug has been fixed. See
20+ :ref: `Note in Times and Dates <time-viewing-differences >` for details.
21+
1722***************
1823Message Changes
1924***************
Original file line number Diff line number Diff line change @@ -28,6 +28,21 @@ The error page has been updated. Please update the following files:
2828Breaking Changes
2929****************
3030
31+ Time::difference() and DST
32+ ==========================
33+
34+ In previous versions, when comparing dates with ``Time::difference() ``, unexpected
35+ results were returned if the date included a day different from 24 hours due to
36+ Daylight Saving Time (DST). See :ref: `Note in Times and Dates <time-viewing-differences >`
37+ for details.
38+
39+ This bug has been fixed, so date comparisons will now be shifted by one day in
40+ such cases.
41+
42+ In the unlikely event that you wish to maintain the behavior of the previous
43+ versions, change the time zone of both dates being compared to UTC before passing
44+ them to ``Time::difference() ``.
45+
3146*********************
3247Breaking Enhancements
3348*********************
Original file line number Diff line number Diff line change @@ -362,6 +362,8 @@ Works exactly the same as ``isBefore()`` except checks if the time is after the
362362
363363.. literalinclude :: time/037.php
364364
365+ .. _time-viewing-differences :
366+
365367Viewing Differences
366368===================
367369
You can’t perform that action at this time.
0 commit comments