[pmwiki-users] Time Zone problem

Patrick R. Michaud pmichaud at pobox.com
Wed Oct 18 13:47:10 CDT 2006

On Wed, Oct 18, 2006 at 11:25:25AM -0700, Craig Maas wrote:
> My copy of PMWiki errors out on the Time Zone.
> putenv("TZ=CST6CDT");
> $TimeFmt='%m-%d-%Y %H:%M'; 
> It's been working for almost a year and was working as
> late as 10/2. I had to comment out the configuration
> line to get the wiki working again.
> I asked my host if they updated the PHP but haven't
> gotten any responce, so I thought I'd ask here if you
> know of anything that would cause this message to
> appear on all my pages:
> Warning: putenv(): Safe Mode warning: Cannot set
> environment variable 'TZ' - it's not in the allowed
> list in
> /var/www/vhosts/craigmaas.net/httpdocs/pmwiki/config.php
> on line 14

Looks to me as though the host upgraded PHP, or turned
on safe_mode.

I'm not sure of any other way to change timezones in PHP
besides using putenv(), although it seems like there
ought to be one.


More information about the pmwiki-users mailing list