Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -1182,10 +1182,9 @@ |
1183 | 1183 | |
1184 | 1184 | global $wgLocalTZoffset, $wgLocaltimezone; |
1185 | 1185 | // Check that $wgLocalTZoffset is the same as $wgLocaltimezone |
1186 | | - if ( $wgLocalTZoffset == date('Z') / 60 ) { |
| 1186 | + if ( $wgLocalTZoffset == date( 'Z' ) / 60 ) { |
1187 | 1187 | $server_tz_msg = wfMsg( 'timezoneuseserverdefault', $wgLocaltimezone ); |
1188 | | - } |
1189 | | - else { |
| 1188 | + } else { |
1190 | 1189 | $tzstring = sprintf( '%+03d:%02d', floor( $wgLocalTZoffset / 60 ), abs( $wgLocalTZoffset ) % 60 ); |
1191 | 1190 | $server_tz_msg = wfMsg( 'timezoneuseserverdefault', $tzstring ); |
1192 | 1191 | } |