[Mediawiki-l] WG: How to correctly set up timezone with DST

heiner.wulfhorst at intermoves.de heiner.wulfhorst at intermoves.de
Mon Apr 6 07:33:27 UTC 2009


Hi List,

i don't like pushing own questions back on top. But after waiting about 
one week with no single reaction from the list and my boss getting 
impatient, i see no other solution.

Could someone _please_ help me?


With regards,

Heiner Wulfhorst


mediawiki-l-bounces at lists.wikimedia.org schrieb am 30.03.2009 16:43:46:

> Hi Guys,
> 
> we are really frustrated as our wiki is showing the wrong time.
> 
> Here's the part of our LocalSettings (as seen on 
> http://www.mediawiki.org/wiki/Manual_talk:Timezone):
> #Set Default Timezone
> $wgLocaltimezone = "Europe/Berlin";
> $oldtz = getenv("TZ");
> putenv("TZ=$wgLocaltimezone");
> # Versions before 1.7.0 used $wgLocalTZoffset as hours.
> # After 1.7.0 offset as minutes
> $wgLocalTZoffset = date("Z") / 60;
> #$wgLocalTZoffset = date("Z") / 60 + date("I") * 60;
> # putenv("TZ=$oldtz");
> 
> 
> Server's and php's time is right:
> [root at servlet ~]# php -r 'echo date("r");'
> Mon, 30 Mar 2009 15:57:03 +0200
> 
> Our Wiki is always 2 hours wrong:
> Server time13:59
> Local time15:59
> Offset 02:00
> 
> 
> Kind regards,
> 
> Heiner Wulfhorst
> 
> Intermoves AG
> Technologiepark 19
> 33100 Paderborn
> 
> * Tel.  + 49 (0) 52 51 16 13-0
> * Fax  + 49 (0) 52 51 16 13-99
> * mailto:heiner.wulfhorst at intermoves.de
> 
> Vorstand: Volker Herold
> Aufsichtsratvorsitzender: Prof. Dr. Uwe Kern
> Sitz der Gesellschaft: Paderborn
> Registergericht: Paderborn, HRB 3592
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


More information about the MediaWiki-l mailing list