[dokuwiki] Re: Setting timezone in dokuwiki

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 10 Sep 2005 21:31:44 +0200

On Fri, 9 Sep 2005 10:18:18 -0400
"Childs, Jeffrey" <Jeffrey.Childs@xxxxxxxxxxxx> wrote:

> Is there any way to set a timezone variable within DokuWiki that is
> independent of the host operating system? My DokuWiki system is
> running on my XP machine (DokuWiki makes a great personal data
> repository/searching tool!), but I have noticed that all of the
> timestamps I am seeing within DokuWiki are set to what appears to be
> GMT.


In PHP5 is a function to set the default timezone
http://www.php.net/manual/en/function.date-default-timezone-set.php

> I tried setting 
> 
>   putenv("TZ=PDT");
> 
> within dokuwiki.php, but it had no effect.

I guess the TZ environment variable is Unix specific (I don't know I
never fiddled with it)

> 
> This actually raises another question. Within a Winblows environment,
> would it be best to run DokuWiki from within an alternate shell, like
> Cygwin for example?

The question is: What benefits would this give? I can't think of any,
but of course having cygwin installed is always a good idea ;-)


Andi

Other related posts: