Table of contents
No headers

The following was successfully tested on VM (Debian Linux) :

  1. To modify the server timezone, enter : dpkg-reconfigure tzdata
    Then select your geographic area (Europe, Australia, ...)
    Select the time zone corresponding to your location (Paris, Sydney, ...)
    That's all! To verify the result, enter : date
  2. Now, maybe all your users are not in the same timezone.
    Don't forget to verify (and adjust) each user timezone in the user preference menu ;)

-------------------------------------------------------------------------


I've not tested the following old part (not erased if usable for other Linux....)

Set $wgDefaultTimezone in LocalSettings.php. Sample:

$wgDefaultTimezone  = date('P'); // use the system timezone
$wgDefaultTimezone  = '-07:00';  // specify a GMT offset
Viewing 6 of 6 comments: view all
would you please tell me how to synchronize the time between the wiki and the host? thx.
Posted 10:35, 7 May 2008
I tried it, but nothing changed.
I changed the value of "-07;00" to "-06:00" and nothing. I just want to time back an hour.how can i do it?
thanks!
Posted 16:16, 5 Mar 2009
The settings file is just a PHP script, so you have access to anything it's capable of. This ought to synchronize it with the server in PHP 5.1.3 and up.

$wgDefaultTimezone = date('P');

Whether there's anything wrong with doing this I don't know. edited 23:55, 1 Apr 2009
Posted 23:53, 1 Apr 2009
how do you make this change take effect? do you have to reboot the system?
Posted 15:28, 27 Jul 2009
The changes should take effect right away, but if they aren't give the API a restart.
Posted 22:48, 29 Jul 2009
The vm timezone doesn't seem to change when using tzselect - i.e. I enter 'date' or 'date -R' in the command line and still get Pacific/the Pacific offset of -0700. Entering 'dpkg-reconfigure tzdata' however, does seem to do the trick - resetting the whole VM's timezone.
Posted 21:46, 27 Aug 2009
Viewing 6 of 6 comments: view all
You must login to post a comment.