Hardcode offset range since the step argument to range is PHP 5 only. fixes #6047

git-svn-id: https://develop.svn.wordpress.org/trunk@7108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-29 19:00:52 +00:00
parent 04ff7f125c
commit a41de28d25
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ include('./admin-header.php');
<select name="gmt_offset">
<?php
$current_offset = get_option('gmt_offset');
foreach ( range(-12, 12, 0.5) as $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,
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);
foreach ( $offset_range as $offset ) {
if ( 0 < $offset )
$offset_name = '+' . $offset;
elseif ( 0 == $offset )