xref: /plugin/timezoneco/dokuwiki-plugin-timezoneco-wikipage.md (revision 07abe9748c673aa35b0db1c271792d15ee068fcb)
1Link: https://www.dokuwiki.org/plugin:timezoneco
2
3====== timezoneco Plugin ======
4
5---- plugin ----
6description: This plugin add a timezone configuration field for you to set up your dokuwiki timezone
7author     : beco
8email      : rcb@beco.cc
9type       : action
10lastupdate : 2022-02-24
11compatible : Hogfather
12depends    :
13conflicts  :
14similar    :
15tags       : timezone
16
17downloadurl: https://github.com/drbeco/timezoneco/archive/master.zip
18bugtracker : https://github.com/drbeco/timezoneco/issues
19sourcerepo : https://github.com/drbeco/timezoneco
20donationurl:
21
22screenshot_img : https://raw.github.com/drbeco/timezoneco/master/timezoneco.png
23----
24
25===== Installation =====
26
27:!: You need to be a bit savage, I can't lie. It is not plain simple. But it is easy enough.
28
29After installing this plugin in your plugin directory (from github or from the instalation tool), you need to edit the file:
30
31  ...dokuwiki/public/inc/init.php
32
33Comment line 95:
34
35  //date_default_timezone_set(@date_default_timezone_get());
36
37Add the following lines:
38
39  if(empty($conf['plugin']['timezoneco']['timezone'])){
40      date_default_timezone_set(@date_default_timezone_get());
41  }else{
42      date_default_timezone_set($conf['plugin']['timezoneco']['timezone']);
43  }
44
45
46===== Configuration and Settings =====
47
48
49On your admin / configuration settings, find the ''timezone'' field and add a string of your timezone according to [[https://www.php.net/manual/en/timezones.php|PHP timezone strings]].
50
51
52===== Development =====
53
54Remember: if you upgrade your dokuwiki, you need to edit the ''init.php'' file again.
55
56=== Change Log ===
57
58  * ** 2022-02-24**
59    * A bug fix that prevented manager.dat to realize the plugin was already up to date
60  * **2021-10-17**
61    * Initial release
62
63=== Known Bugs and Issues ===
64
65  * There should be a better way
66
67=== ToDo/Wish List ===
68
69  * In hope someday this plugin would cease to exist by adding this functionality to the very core of Dokuwiki.
70
71
72===== Discussion =====
73
74//Add discussion at issue tracker://
75
76[[https://github.com/drbeco/timezoneco/issues]]
77
78