It's better when it's simple

User Tools

Site Tools


Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community

Follow us on Facebook, Twitter and other social networks.


Setting TimeZone

Edit DokuWiki Conf

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


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


Note that if you modify conf/local.php, your changes will be lost when you configure via the GUI.

For changing time zone on linux shared hosting - dokuWiki/inc/init.php - Line no 88 - Set you own time zone. e.g. date_default_timezone_set('Asia/Kolkata'); for india. You may also try double quotes, if single quotes give a PHP warning…

Edit PHP Conf

Alternatively, edit the php.ini file.

For example, in Ubuntu edit /etc/php5/fpm/php.ini.

Uncomment the ;date.timezone = line and add your timezone.

date.timezone = America/Chicago

Then reload PHP to make the change take effect.

/etc/init.d/php5-fpm reload


The PHP site lists the available timezones.

For example, if you live in Chicago, replace GMT with “America/Chicago”.

tips/timezone.txt · Last modified: 2017-11-27 14:14 by thekeymaster