IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
252 | 252 | <p class="timezone-info"> |
253 | 253 | <span> |
254 | 254 | <?php |
255 | | // Set TZ so localtime works. |
256 | | date_default_timezone_set( $tzstring ); |
257 | | $now = localtime( time(), true ); |
258 | | if ( $now['tm_isdst'] ) { |
| 255 | $now = new DateTime( 'now', new DateTimeZone( $tzstring ) ); |
| 256 | $dst = (bool) $now->format( 'I' ); |
| 257 | |
| 258 | if ( $dst ) { |
259 | 259 | _e( 'This timezone is currently in daylight saving time.' ); |
260 | 260 | } else { |
261 | 261 | _e( 'This timezone is currently in standard time.' ); |
… |
… |
|
296 | 296 | _e( 'This timezone does not observe daylight saving time.' ); |
297 | 297 | } |
298 | 298 | } |
299 | | // Set back to UTC. |
300 | | date_default_timezone_set( 'UTC' ); |
301 | 299 | ?> |
302 | 300 | </span> |
303 | 301 | </p> |