r85358 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85357‎ | r85358 | r85359 >
Date:18:47, 4 April 2011
Author:mah
Status:ok
Tags:
Comment:
revert r85177 since a lot of people don't set their $wgLocaltimezone
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Preferences.php
@@ -1203,8 +1203,7 @@
12041204 $prefill = array_fill_keys( array_values( $tzRegions ), array() );
12051205 $opt = array_merge( $opt, $prefill );
12061206
1207 - global $wgLocaltimezone;
1208 - $now = date_create( 'now', $wgLocaltimezone );
 1207+ $now = date_create( 'now' );
12091208
12101209 foreach ( $tzs as $tz ) {
12111210 $z = explode( '/', $tz, 2 );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r85177Fix Bug#24308 where, on some platforms the date_create() function fails when ...mah04:49, 2 April 2011

Status & tagging log