Difference between revisions of "Help:Timezone"
Line 27: | Line 27: | ||
''Note: Upload and deletion logs will probably still be listed in UTC''<br> | ''Note: Upload and deletion logs will probably still be listed in UTC''<br> | ||
− | ''Note: This | + | ''Note: This meth |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 03:57, 13 April 2007
The default Timezone (tz) for users who have not specified a custom offset may be configured manually.
Primary Method
- Create a backup copy of the LocalSettings.php file found in your install directory
- Edit LocalSettings.php and add the following code:
#Set Default Timezone $wgLocaltimezone = "America/Los_Angeles"; $oldtz = getenv("TZ"); putenv("TZ=$wgLocaltimezone"); $wgLocalTZoffset = date("Z") / 3600; putenv("TZ=$oldtz");
- Set the '$wgLocaltimezone' value to the proper value which you can find here. See examples below.
$wgLocaltimezone = "Europe/London"; $wgLocaltimezone = "Asia/Taipei";
Note: This timezone will be used in:
- ~~~~ signatures
- timestamps in recentchanges
- timestamps in history
Note: Upload and deletion logs will probably still be listed in UTC
Note: This meth