Ticket #35224: 35224.diff
| File 35224.diff, 736 bytes (added by , 10 years ago) |
|---|
-
src/wp-includes/rest-api.php
601 601 } 602 602 603 603 /** 604 * Parses an RFC3339 time stamp into a DateTime.604 * Parses an RFC3339 time into a unix timestamp. 605 605 * 606 606 * @since 4.4.0 607 607 * … … 608 608 * @param string $date RFC3339 timestamp. 609 609 * @param bool $force_utc Optional. Whether to force UTC timezone instead of using 610 610 * the timestamp's timezone. Default false. 611 * @return DateTime DateTime instance.611 * @return int Unix timestamp. 612 612 */ 613 613 function rest_parse_date( $date, $force_utc = false ) { 614 614 if ( $force_utc ) {