wordpress-develop/tests/phpunit/tests/date
Sergey Biryukov 5928234d05 Date/Time: Introduce get_post_datetime() to retrieve post published or modified time as a DateTimeImmutable object instance.
Introduce `get_post_timestamp()` to retrieve post published or modified time as a Unix timestamp.

Use `get_post_datetime()` in `get_post_time()` and `get_post_modified_time()` to return correct GMT time if default timezone is changed from UTC.

Props Rarst, johnregan3.
Fixes #25002.

git-svn-id: https://develop.svn.wordpress.org/trunk@46154 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-17 11:13:25 +00:00
..
currentTime.php Date/Time: Restore the previous behavior of date_i18n() where invalid input would result in current time. 2019-08-29 23:17:30 +00:00
dateI18n.php Date/Time: Restore the previous behavior of date_i18n() where invalid input would result in current time. 2019-08-29 23:17:30 +00:00
mysql2date.php Date/Time: Revamp mysql2date() to use wp_date() and handle invalid input in a consistent manner. 2019-08-29 05:06:15 +00:00
postTime.php Date/Time: Introduce get_post_datetime() to retrieve post published or modified time as a DateTimeImmutable object instance. 2019-09-17 11:13:25 +00:00
query.php Date/Time: Use wp_timezone() in WP_Date_Query::build_mysql_datetime() to address timezone issues. 2019-08-22 03:10:05 +00:00
theDate.php Date/Time: Restore the previous behavior of date_i18n() where invalid input would result in current time. 2019-08-29 23:17:30 +00:00
wpDate.php Date/Time: Restore the previous behavior of date_i18n() where invalid input would result in current time. 2019-08-29 23:17:30 +00:00
wpTimezone.php Date/Time: Restore the previous behavior of date_i18n() where invalid input would result in current time. 2019-08-29 23:17:30 +00:00