Ticket #6176: obscure_timezone.2.patch
File obscure_timezone.2.patch, 1.0 KB (added by , 16 years ago) |
---|
-
wp-admin/options-general.php
60 60 <?php 61 61 $current_offset = get_option('gmt_offset'); 62 62 $offset_range = array (-12, -11.5, -11, -10.5, -10, -9.5, -9, -8.5, -8, -7.5, -7, -6.5, -6, -5.5, -5, -4.5, -4, -3.5, -3, -2.5, -2, -1.5, -1, -0.5, 63 0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5, 10, 10.5, 11, 11.5, 12);63 0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 5.75, 6, 6.5, 7, 7.5, 8, 8.5, 8.75, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.75, 13, 13.75, 14); 64 64 foreach ( $offset_range as $offset ) { 65 65 if ( 0 < $offset ) 66 66 $offset_name = '+' . $offset; … … 69 69 else 70 70 $offset_name = (string) $offset; 71 71 72 $offset_name = str_replace( '.5', ':30', $offset_name);72 $offset_name = str_replace(array('.25','.5','.75'), array(':15',':30',':45'), $offset_name); 73 73 74 74 $selected = ''; 75 75 if ( $current_offset == $offset ) {