Changeset 46577
- Timestamp:
- 10/25/2019 11:03:13 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r46569 r46577 177 177 if ( 'U' === $format ) { 178 178 $date = $timestamp; 179 } elseif ( $gmt && !$timestamp_with_offset ) { // Current time in UTC.179 } elseif ( $gmt && $timestamp_with_offset ) { // Current time in UTC. 180 180 $date = wp_date( $format, null, new DateTimeZone( 'UTC' ) ); 181 } elseif ( !$timestamp_with_offset ) { // Current time in site's timezone.181 } elseif ( $timestamp_with_offset ) { // Current time in site's timezone. 182 182 $date = wp_date( $format ); 183 183 } else { -
trunk/tests/phpunit/tests/date/dateI18n.php
r45914 r46577 18 18 19 19 $this->assertEquals( $wp_timestamp, date_i18n( 'U', 'invalid' ), '', 5 ); 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 20 38 } 21 39
Note: See TracChangeset
for help on using the changeset viewer.