WordPress.org

Make WordPress Core

Ticket #6176: obscure_timezone.2.patch

File obscure_timezone.2.patch, 1.0 KB (added by sambauers, 6 years ago)
  • wp-admin/options-general.php

     
    6060<?php 
    6161$current_offset = get_option('gmt_offset'); 
    6262$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); 
    6464foreach ( $offset_range as $offset ) { 
    6565        if ( 0 < $offset ) 
    6666                $offset_name = '+' . $offset; 
     
    6969        else 
    7070                $offset_name = (string) $offset; 
    7171 
    72         $offset_name = str_replace('.5', ':30', $offset_name); 
     72        $offset_name = str_replace(array('.25','.5','.75'), array(':15',':30',':45'), $offset_name); 
    7373 
    7474        $selected = ''; 
    7575        if ( $current_offset == $offset ) {