Try adding the following to your LocalSettings.php file.
#Set Default Timezone
$wgLocaltimezone = "America/Los_Angeles";
oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");
$wgLocalTZoffset = date("Z") / 3600;
putenv("TZ=$oldtz");
This might not work properly if you're using a Mediawiki version newer
than 1.7, which uses use hours, not minutes. In the case when you're
using version 1.7 or newer, the "3600" in the above code would be
replaced by the number "60". Here's a website that helps explain it and
other options:
http://meta.wikimedia.org/wiki/Help:Timezone
-Jim
-----Original Message-----
From: Dave Sigafoos [mailto:davesigafoos@sanmar.com]
Sent: Tuesday, March 27, 2007 9:11 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Local timezone
Gabrial,
We are testing this on an winXP box. Our clock is correct for our time
zone and the patch for windows was added before the fact.
Everything we do in Mediawiki shows as 7 hours behind gmt. So it
appears that there might be 2 issues
1) Mediawiki does not know that I am on Pacific time at all. It appears
to be trying to show GMT as everything is ahead by 7 hours.
2) Mediawiki is not recognizing the 'New and Improved' Daylight Savings
Time (since it is showing 7 hours not 8)
We might just need some Tommyknockers to clean this whole time bit up.
More ideas?
Thanks
DSig
David Tod Sigafoos
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Gabriel
Millerd
Sent: Monday, March 26, 2007 23:54
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Local timezone
On 3/26/07, Dave Sigafoos <davesigafoos(a)sanmar.com> wrote:
Also, I would *guess* from the PST8PDT that this is 8 hours off of
GMT,
when currently we are 7 hours.
Here is a guess.
I will assume your from Seattle, Washington USA from your signature's
area code and thus your TZ is PST8PDT . That is the abbreviation for
"Pacific Standard Time/ Pacific Daylight Time" used in United States:
California, Idaho (parts), Nevada, Oregon (parts), Washington. This
differs from PST7PDT in ways you can read here:
http://en.wikipedia.org/wiki/List_of_time_zones#UTC_.E2.88.92_8.2C_U
The various 'leap year, time zone offset, daylight savings on, daylight
savings off information is usually kept in some sort of file on your
system. For example on a Unix Debian box its
/usr/share/zoneinfo/US/Pacific.
Any how, these packages (libc infact on Deb) that provide that
information need to be updated or tweaked with the new because the DST
is three weeks earlier than before.
Linux Example:
http://packages.debian.org/changelogs/pool/main/g/glibc/glibc_2.3.2.ds1-
22sarge5/changelog
Others:
http://docs.info.apple.com/article.html?artnum=305056
http://support.microsoft.com/gp/cp_dst
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l