Changeset 43383 for trunk/src/wp-includes/functions.php
- Timestamp:
- 06/26/2018 05:52:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r43380 r43383 5850 5850 5851 5851 /** 5852 * Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601 /RFC3339.5852 * Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601 (Y-m-d\TH:i:s). 5853 5853 * 5854 5854 * Explicitly strips timezones, as datetimes are not saved with any timezone 5855 5855 * information. Including any information on the offset could be misleading. 5856 5856 * 5857 * Despite historical function name, the output does not conform to RFC3339 format, 5858 * which must contain timezone. 5859 * 5857 5860 * @since 4.4.0 5858 5861 * 5859 5862 * @param string $date_string Date string to parse and format. 5860 * @return string Date formatted for ISO8601 /RFC3339.5863 * @return string Date formatted for ISO8601 without time zone. 5861 5864 */ 5862 5865 function mysql_to_rfc3339( $date_string ) {
Note: See TracChangeset
for help on using the changeset viewer.