Changeset 10770
- Timestamp:
- 03/11/2009 03:46:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-general.php
r10757 r10770 153 153 <br /> 154 154 <?php 155 _e('This timezone is currently in ');156 155 $now = localtime(time(),true); 157 if ($now['tm_isdst']) _e('daylight savings'); 158 else _e('standard'); 159 _e(' time.'); 156 if ($now['tm_isdst']) _e('This timezone is currently in daylight savings time.'); 157 else _e('This timezone is currently in standard time.'); 160 158 ?> 161 159 <br /> … … 171 169 172 170 if ($found) { 173 _e('This timezone switches to '); 174 $tr['isdst'] ? _e('daylight savings time') : _e('standard time'); 175 _e(' on: '); 171 _e(' '); 172 $message = $tr['isdst'] ? 173 __('This timezone switches to daylight savings time on: %s.') : 174 __('This timezone switches to standard time on: %s.'); 176 175 $tz = new DateTimeZone($tzstring); 177 176 $d = new DateTime( "@{$tr['ts']}" ); 178 177 $d->setTimezone($tz); 179 echo date_i18n(__('Y-m-d \a\t g:i a T'),$d->format('U'));178 printf( $message, date_i18n(__('Y-m-d \a\t g:i a T'), $d->format('U') ) ); 180 179 } else { 181 180 _e('This timezone does not observe daylight savings time.');
Note: See TracChangeset
for help on using the changeset viewer.