Add some missing timezone offsets. Fixes #6176 props sambauers.

git-svn-id: http://svn.automattic.com/wordpress/trunk@7264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-03-12 08:38:21 +00:00
parent 31abda9e0f
commit 3eb7d021ed
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ include('./admin-header.php');
<?php <?php
$current_offset = get_option('gmt_offset'); $current_offset = get_option('gmt_offset');
$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, $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,
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); 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);
foreach ( $offset_range as $offset ) { foreach ( $offset_range as $offset ) {
if ( 0 < $offset ) if ( 0 < $offset )
$offset_name = '+' . $offset; $offset_name = '+' . $offset;
@ -69,7 +69,7 @@ foreach ( $offset_range as $offset ) {
else else
$offset_name = (string) $offset; $offset_name = (string) $offset;
$offset_name = str_replace('.5', ':30', $offset_name); $offset_name = str_replace(array('.25','.5','.75'), array(':15',':30',':45'), $offset_name);
$selected = ''; $selected = '';
if ( $current_offset == $offset ) { if ( $current_offset == $offset ) {