r88222 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88221‎ | r88222 | r88223 >
Date:09:59, 16 May 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Follow-up r88190: coding style
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Preferences.php
@@ -1182,10 +1182,9 @@
11831183
11841184 global $wgLocalTZoffset, $wgLocaltimezone;
11851185 // Check that $wgLocalTZoffset is the same as $wgLocaltimezone
1186 - if ( $wgLocalTZoffset == date('Z') / 60 ) {
 1186+ if ( $wgLocalTZoffset == date( 'Z' ) / 60 ) {
11871187 $server_tz_msg = wfMsg( 'timezoneuseserverdefault', $wgLocaltimezone );
1188 - }
1189 - else {
 1188+ } else {
11901189 $tzstring = sprintf( '%+03d:%02d', floor( $wgLocalTZoffset / 60 ), abs( $wgLocalTZoffset ) % 60 );
11911190 $server_tz_msg = wfMsg( 'timezoneuseserverdefault', $tzstring );
11921191 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r88190Bug 28715 - Display what the server default timezone is in the timezone selec...robla14:51, 15 May 2011

Status & tagging log