Skip to content

Commit

Permalink
Merge pull request #388 from cakephp/fix-385
Browse files Browse the repository at this point in the history
Update docs for Date + timezone
  • Loading branch information
othercorey authored Apr 16, 2023
2 parents 73f3e77 + 7b57fca commit 9520de8
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 9520de8

Please sign in to comment.