docs: add changelog and upgrade

This commit is contained in:
kenjis 2024-03-27 21:49:05 +09:00
parent 8a8a67c1c7
commit 6ae5743420
No known key found for this signature in database
GPG Key ID: BD254878922AF198
3 changed files with 22 additions and 0 deletions

View File

@ -14,6 +14,11 @@ Release Date: Unreleased
BREAKING
********
- In previous versions, when comparing dates with ``Time::difference()``,
unexpected results were returned if the date included a day different from 24
hours due to Daylight Saving Time (DST). This bug has been fixed. See
:ref:`Note in Times and Dates <time-viewing-differences>` for details.
***************
Message Changes
***************

View File

@ -28,6 +28,21 @@ The error page has been updated. Please update the following files:
Breaking Changes
****************
Time::difference() and DST
==========================
In previous versions, when comparing dates with ``Time::difference()``, unexpected
results were returned if the date included a day different from 24 hours due to
Daylight Saving Time (DST). See :ref:`Note in Times and Dates <time-viewing-differences>`
for details.
This bug has been fixed, so date comparisons will now be shifted by one day in
such cases.
In the unlikely event that you wish to maintain the behavior of the previous
versions, change the time zone of both dates being compared to UTC before passing
them to ``Time::difference()``.
*********************
Breaking Enhancements
*********************

View File

@ -362,6 +362,8 @@ Works exactly the same as ``isBefore()`` except checks if the time is after the
.. literalinclude:: time/037.php
.. _time-viewing-differences:
Viewing Differences
===================