Skip to content

Commit

Permalink
Update docs for Date + timezone
Browse files Browse the repository at this point in the history
In 2.x the timezone used for `Date` and `MutableDate` has changed
from UTC to the server local time. Update the docs to reflect that.

Refs #385
  • Loading branch information
markstory committed Apr 16, 2023
1 parent a4487c6 commit 7b57fca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ Date Objects
PHP only provides a single DateTime object. Representing calendar dates can be
a bit awkward with this class as it includes timezones, and time components that
don't really belong in the concept of a 'day'. Chronos provides a ``Date``
object that allows you to represent dates. The time and timezone for these
objects is always fixed to ``00:00:00 UTC`` and all formatting/difference
methods operate at the day resolution::
object that allows you to represent dates. The time for date objects is always
fixed to ``00:00:00``, and the timezone is set to the server local timezone. All
formatting/difference methods operate at the day resolution::

use Cake\Chronos\Date;

Expand Down

0 comments on commit 7b57fca

Please sign in to comment.