IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
| 76 | /** |
| 77 | * Retrieve the current time as an object with the settings time zone. |
| 78 | * |
| 79 | * @return DateTimeImmutable |
| 80 | */ |
| 81 | function current_datetime() { |
| 82 | |
| 83 | return new DateTimeImmutable( 'now', wp_timezone() ); |
| 84 | } |
| 85 | |
76 | 86 | /** |
77 | 87 | * Retrieve the date in localized format, based on a sum of Unix timestamp and |
78 | 88 | * timezone offset in seconds. |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
856 | 856 | echo '<ul>'; |
857 | 857 | |
858 | 858 | $today = current_time( 'Y-m-d' ); |
859 | | $tomorrow = gmdate( 'Y-m-d', strtotime( '+1 day', current_time( 'timestamp' ) ) ); |
| 859 | $tomorrow = current_datetime()->modify('+1 day')->format('Y-m-d'); |
860 | 860 | $year = current_time( 'Y' ); |
861 | 861 | |
862 | 862 | while ( $posts->have_posts() ) { |