Translations of this page?:

Setting TimeZone

To set the correct timezone edit conf/local.protected.php1) and add the line:

putenv("TZ=GMT");

If you use php5:

date_default_timezone_set("GMT");

Note 1: Replace GMT with your specific timezone.

You can find a list of timezones here: http://us.php.net/timezones
That is to say, if you live in Danemark : DK +5540+01235 Europe/Copenhagen, so you need to replace GMT by “Europe/Copenhagen”.

Note 2: Make sure to put the modification after ”<?php” if it was already there or just add it like this:

<?php
date_default_timezone_set("GMT");
1) if you modify conf/local.php, your changes will be lost when you configure via the GUI
tips/timezone.txt · Last modified: 2010/12/02 23:53 by damascene
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate