Page MenuHomePhabricator

Timezone set to GMT since update from 1.4.8 to 1.4.9
Closed, ResolvedPublic

Description

Author: moz

Description:
Since updating from 1.4.8 to 1.4.9 all the times shown in the Wiki are set to
GMT instead of GMT+0200 as it is set in the OS and as was correctly shown
before. OS is RedHat 2.4.21-20.EL with PHP 4.3.2 (apache2filter) and MySQL 3.23.58.

Setting $wgLocaltimezone = 'CET'; in LocalSettings.php doesn't help either. Even
setting it to a totally wrong timezone doesn't make any difference, it just
stays on GMT.

Version of bug is wrongly set to 1.4.8 as 1.4.9 isn't available yet. Don't know
what component this belongs to.

Thanks for the great software!


Version: 1.4.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz3305

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:47 PM
bzimport set Reference to bz3305.
bzimport added a subscriber: Unknown Object (MLST).

$wgLocaltimezone overrides only the timestamp display used for automatic signature insertion
(~~~~ when editing articles) and does not affect other sorts of output.

Note that MediaWiki shows UTC (GMT) for most times by default regardless of your operating
system configuration. Server local time is used only for signatures.

To set the default timezone offset used for display and initialization of user accounts, you
must additionally set $wgLocalTZoffset. See further details:
http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_set_the_timezone_for_my_MediaWiki.3F
http://mail.wikipedia.org/pipermail/mediawiki-l/2004-April/000357.html

There should be no difference between 1.4.8 and 1.4.9 behavior here, and it works as
documented in 1.4.9 so far as I can see.

moz wrote:

Thanks for your answer. I could have sworn that the timezone setting user
preference showed the "right" time in 1.4.8, but that could very well have been
a daydream. Duping to bug 505 as $wgLocalTZoffset would mean having to change
the offset twice a year.

*** This bug has been marked as a duplicate of 505 ***