Make WordPress Core

Changeset 45424

Timestamp:
05/26/2019 12:11:37 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Date/Time: Replace all instances of date() with gmdate().

Use of date() in core depends on PHP timezone set to UTC and not changed by third party code (which cannot be guaranteed).

gmdate() is functionally equivalent, but is not affected by PHP timezone setting: it's always UTC, which is the exact behavior the core needs.

Props nielsdeblaauw, Rarst.
Fixes #46438. See #44491.

Location:
trunk
Files:
49 edited

Changeset view not shown, since the total size (5.1 MB) exceeds 4.0 MB

Note: See TracChangeset for help on using the changeset viewer.