[Mediawiki-l] Timezone setup -- an hour off

Bill Moseley moseley at hank.org
Fri Dec 9 16:02:44 UTC 2005


Fresh first-time install of 1.5.3 on Linux.

Trying to display times (like in a page's history) in a specific time
zone.  And not when a user is logged in.

Looking at DefaultSettings.php and
http://mail.wikipedia.org/pipermail/mediawiki-l/2004-April/000357.html
I tried this:

    $wgLocaltimezone="PST8PDT";
    #$wgLocaltimezone="America/Los_Angeles";
    putenv("TZ=$wgLocaltimezone"); 
    $wgLocalTZoffset = date("Z") / 3600;

Tried both of those timezone settings.

The machine's time is correct:

$ date
Fri Dec  9 08:00:49 PST 2005



-- 
Bill Moseley
moseley at hank.org




More information about the MediaWiki-l mailing list