DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:timezone

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:timezone [2019-04-16 18:59] Dr-Yukontips:timezone [2022-06-22 04:02] (current) – clarify that local.protected.php may need to be created, as I had to do for my wiki 96.241.231.169
Line 3: Line 3:
 ===== Edit DokuWiki Conf ===== ===== Edit DokuWiki Conf =====
  
-To set the correct timezone edit ''conf/local.protected.php'' and add the line:+To set the correct timezoneedit ''conf/local.protected.php'' or create it if it does not already exist. Add the line:
  
 <code php> <code php>
Line 9: Line 9:
 </code> </code>
  
-Make sure to put the modification after "<?php" if it was already there or just add it like this:+The modification goes after "<?php"if it is not already thereit can be added as follows
 <code php conf/local.protected.php> <code php conf/local.protected.php>
 <?php <?php
Line 45: Line 45:
  
 For example, if you live in Chicago, replace GMT with "America/Chicago". For example, if you live in Chicago, replace GMT with "America/Chicago".
 +
 +===== Timezones for users =====
 +
 +I use this for my UTS+10 timezone (look at "shift" var) and posted a link on my site for readers
 +https://github.com/Comicslate/Userscripts/blob/master/Comicslate/TimeFix.user.js
 +
 +It would be nice to make a plugin to request a timezone in a user profile and store this parameter in a cookie
tips/timezone.1555433961.txt.gz · Last modified: 2019-04-16 18:59 by Dr-Yukon

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki