wordpress-develop/tests/phpunit/tests/date
Sergey Biryukov 10855438ea 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@45424 602fd350-edb4-49c9-b593-d223f7449a82
2019-05-26 00:11:37 +00:00
..
currentTime.php Date/Time: Make sure current_time() always calculates the offset from GMT/UTC. 2018-08-30 12:12:55 +00:00
dateI18n.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:11:37 +00:00
query.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
theDate.php Date/Time: Return early from the_weekday() and the_weekday_date() if we're not in the loop. 2019-05-23 00:37:56 +00:00