Skip to content

Commit 6ae5743

Browse files
committed
docs: add changelog and upgrade
1 parent 8a8a67c commit 6ae5743

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

user_guide_src/source/changelogs/v4.4.7.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Release Date: Unreleased
1414
BREAKING
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
***************
1823
Message Changes
1924
***************

user_guide_src/source/installation/upgrade_447.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ The error page has been updated. Please update the following files:
2828
Breaking 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
*********************
3247
Breaking Enhancements
3348
*********************

user_guide_src/source/libraries/time.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
365367
Viewing Differences
366368
===================
367369

0 commit comments

Comments
 (0)