Changeset 45424 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 05/26/2019 12:11:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r45418 r45424 3433 3433 $datetime = date_create( $string, new DateTimeZone( 'UTC' ) ); 3434 3434 if ( ! $datetime ) { 3435 return date( $format, 0 );3435 return gmdate( $format, 0 ); 3436 3436 } 3437 3437 $datetime->setTimezone( new DateTimeZone( $tz ) ); … … 3439 3439 } else { 3440 3440 if ( ! preg_match( '#([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})#', $string, $matches ) ) { 3441 return date( $format, 0 );3441 return gmdate( $format, 0 ); 3442 3442 } 3443 3443 $string_time = gmmktime( $matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1] );
Note: See TracChangeset
for help on using the changeset viewer.