Make WordPress Core

Ticket #10288: 10288.patch

File 10288.patch, 1.1 KB (added by hakre, 16 years ago)
  • wp-admin/options-general.php

     
    104104<?php
    105105$current_offset = get_option('gmt_offset');
    106106$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,
    107         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);
     107        0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 5.75, 5.83, 6, 6.5, 6.83, 7, 7.5, 8, 8.5, 8.75, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.75, 13, 13.75, 14);
    108108foreach ( $offset_range as $offset ) {
    109109        if ( 0 < $offset )
    110110                $offset_name = '+' . $offset;
     
    113113        else
    114114                $offset_name = (string) $offset;
    115115
    116         $offset_name = str_replace(array('.25','.5','.75'), array(':15',':30',':45'), $offset_name);
     116        $offset_name = str_replace(array('.25','.5','.75','.83'), array(':15',':30',':45',':50'), $offset_name);
    117117
    118118        $selected = '';
    119119        if ( $current_offset == $offset ) {