I got an error ("unexpected date_default_timezone_set") when I tried to set my timezone using the first method at
https://www.dokuwiki.org/tips:timezone (editing
conf/local.protected.php). What I had done was to create a
local.protected.php file (because I didn't already have one) with this as its only content:
<?php
date_default_timezone_set("GMT");
Next I tried the second method (editing
incl/init.php). This worked, but I have a couple questions:
1a. The second method begins, "For changing time zone on linux shared hosting". Does this mean the first method won't work on shared hosting? If so, this may explain my failure with the first method since my site is on linux shared hosting.
1b. Either way, did I even do the first method correctly?
2. Will the second method be overwritten when I update DokuWiki?