tz variable generates php warning [message #950] |
Wed, 13 March 2002 19:41 ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
![](/forum/images/custom_avatars/68.jpg) |
basse
![Finland Finland](/forum/images/flags/fi.png) Messages: 164 Registered: March 2002 Location: Åbo, Finland
Karma: 0
|
Senior Member |
|
|
More safe_mode troubles for you. This warning gets spit out every time someone visits the forum:
PHP Warning: Safe Mode: Cannot set environment variable 'TZ' - it's not in the allowed list in /some/path/forum_data/include/time.inc on line 24
This seems to lead to the time always beeing displayed as GMT instead of local time zone.
[Updated on: Wed, 13 March 2002 19:42] Report message to a moderator
|
|
|
Re: tz variable generates php warning [message #951 is a reply to message #950] |
Wed, 13 March 2002 20:59 ![Go to previous message Go to previous message](/forum/theme/default/images/up.png) ![Go to next message Go to next message](/forum/theme/default/images/down.png) |
Ilia
![Canada Canada](/forum/images/flags/ca.png) Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
djupsjob wrote on Wed, 13 March 2002 2:41 PM | More safe_mode troubles for you. This warning gets spit out every time someone visits the forum:
PHP Warning: Safe Mode: Cannot set environment variable 'TZ' - it's not in the allowed list in /some/path/forum_data/include/time.inc on line 24
This seems to lead to the time always beeing displayed as GMT instead of local time zone.
|
Well I will eliminate the warning, however for the timezone you'll be stuck with GMT because of the rather Nazi php settings. You can solve this problem by adding TZ to safe_mode_allowed_env_vars parameter in your php.ini or your virtual host entry inside httpd.conf.
FUDforum Core Developer
|
|
|
|