Try adding:
# Versions before 1.7.0 used $wgLocalTZoffset as hours (3600 seconds/hour). # After 1.7.0 offset as minutes (60 seconds/minute) $wgLocalTZoffset = date("Z") / 60; putenv("TZ=$oldtz");
-----Original Message----- From: Shah, Nikhil [mailto:Nikhil.Shah@lendingtree.com] Sent: Monday, September 10, 2007 11:08 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] {{CURRENTTIME}} shows time in UTC
Thanks Jim,
I have added #Set Default Timezone $wgLocaltimezone = "America/New_York"; $oldtz = getenv("TZ"); putenv("TZ=$wgLocaltimezone");
To the LocalSettings.php
But I keep getting {{CURRENTTIME}} in UTC
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Sullivan, James (NIH/CIT) [C] Sent: Monday, September 10, 2007 10:17 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] {{CURRENTTIME}} shows time in UTC
Check out http://meta.wikimedia.org/wiki/Help:Timezone
-Jim
-----Original Message----- From: Shah, Nikhil [mailto:Nikhil.Shah@lendingtree.com] Sent: Monday, September 10, 2007 9:26 AM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] {{CURRENTTIME}} shows time in UTC
{{CURRENTTIME}} shows time in UTC, The clock on my server shows time in EDT.
What so I use for showing the local time?
Thanks,
Nikhil _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l