WordPress.org

Make WordPress Core

Ticket #35224: 35224.diff

File 35224.diff, 736 bytes (added by TimothyBlynJacobs, 5 years ago)
  • src/wp-includes/rest-api.php

     
    601601}
    602602
    603603/**
    604  * Parses an RFC3339 timestamp into a DateTime.
     604 * Parses an RFC3339 time into a unix timestamp.
    605605 *
    606606 * @since 4.4.0
    607607 *
     
    608608 * @param string $date      RFC3339 timestamp.
    609609 * @param bool   $force_utc Optional. Whether to force UTC timezone instead of using
    610610 *                          the timestamp's timezone. Default false.
    611  * @return DateTime DateTime instance.
     611 * @return int Unix timestamp.
    612612 */
    613613function rest_parse_date( $date, $force_utc = false ) {
    614614        if ( $force_utc ) {