Changeset 9742 for trunk/wp-admin/options-general.php
- Timestamp:
- 11/17/2008 09:31:46 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-general.php
r9647 r9742 122 122 <span id="utc-time"><?php printf(__('<abbr title="Coordinated Universal Time">UTC</abbr> time is <code>%s</code>'), date_i18n(__('Y-m-d G:i:s'), false, 'gmt')); ?></span> 123 123 <?php if ($current_offset) : ?> 124 <span id="local-time"><?php printf(__('UTC %1$s is <code>%2$s</code>'), $current_offset_name, date_i18n(__('Y-m-d G:i:s') , current_time('timestamp'), 'gmt')); ?></span>124 <span id="local-time"><?php printf(__('UTC %1$s is <code>%2$s</code>'), $current_offset_name, date_i18n(__('Y-m-d G:i:s'))); ?></span> 125 125 <?php endif; ?> 126 126 <br/> … … 149 149 $custom = FALSE; 150 150 } 151 echo ' /> ' . date_i18n( $format , current_time('timestamp'), 'gmt') . "</label><br />\n";151 echo ' /> ' . date_i18n( $format ) . "</label><br />\n"; 152 152 } 153 153 154 154 echo ' <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; 155 155 checked( $custom, TRUE ); 156 echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . attribute_escape( get_option('date_format') ) . '" class="small-text" /> ' . date_i18n( get_option('date_format') , current_time('timestamp'), 'gmt') . "\n";156 echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . attribute_escape( get_option('date_format') ) . '" class="small-text" /> ' . date_i18n( get_option('date_format') ) . "\n"; 157 157 158 158 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click "Save Changes" to update sample output.') . "</p>\n"; … … 181 181 $custom = FALSE; 182 182 } 183 echo ' /> ' . date_i18n( $format , current_time('timestamp'), 'gmt') . "</label><br />\n";183 echo ' /> ' . date_i18n( $format ) . "</label><br />\n"; 184 184 } 185 185 186 186 echo ' <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"'; 187 187 checked( $custom, TRUE ); 188 echo '/> ' . __('Custom:') . ' </label><input type="text" name="time_format_custom" value="' . attribute_escape( get_option('time_format') ) . '" class="small-text" /> ' . date_i18n( get_option('time_format') , current_time('timestamp'), 'gmt') . "\n";188 echo '/> ' . __('Custom:') . ' </label><input type="text" name="time_format_custom" value="' . attribute_escape( get_option('time_format') ) . '" class="small-text" /> ' . date_i18n( get_option('time_format') ) . "\n"; 189 189 ?> 190 190 </fieldset>
Note: See TracChangeset
for help on using the changeset viewer.