Ticket #28636: functions.diff
| File functions.diff, 562 bytes (added by , 6 years ago) |
|---|
-
functions.php
176 176 */ 177 177 if ( 'U' === $format ) { 178 178 $date = $timestamp; 179 } elseif ( $gmt && !$timestamp_with_offset ) { // Current time in UTC.179 } elseif ( $gmt && false === $timestamp_with_offset ) { // Current time in UTC. 180 180 $date = wp_date( $format, null, new DateTimeZone( 'UTC' ) ); 181 181 } elseif ( ! $timestamp_with_offset ) { // Current time in site's timezone. 182 182 $date = wp_date( $format );