PHP Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/www/roundcube/program/include/main.inc on line 1029
my roundcube errors log is FULL (27G !) of these messages. I am not sure where to find the "date.timezone" this message refers to. Nor do I understand the "date_default_timezone_set()" function.
Inside the file main.inc.php, I tried to set "$rcmail_config['timezone'] = '(GMT -8:00) Pacific Time (US/Canada)';
but the errors log keeps filling up.
So I have adjusted the above to: "$rcmail_config['timezone'] = 'America/Los_Angeles';
as it suggests, but the errors log KEEPS filling with the exact same message.
Advice gratefully appreciated.
Jim _______________________________________________ List info: http://lists.roundcube.net/users/ BT/9b404e9e
On 11/04/10 22:36, Jim Pazarena wrote:
PHP Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/www/roundcube/program/include/main.inc on line 1029
You need to set the date.timezone preference in one of the following:
Yes, your php.ini file is located in the same timezone as the server. But apparently, the PHP devs would like you to set a very special PHP-only timezone, because the one you set for PHP is going to be somehow more reliable than the one you set for the system.
See the date.timezone section of,
http://www.php.net/manua/en/datetime.configuration.php
for possible values. _______________________________________________ List info: http://lists.roundcube.net/users/ BT/9b404e9e
On 2010-11-04 11:15 PM, Michael Orlitzky wrote:
On 11/04/10 22:36, Jim Pazarena wrote:
PHP Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/www/roundcube/program/include/main.inc on line 1029
You need to set the date.timezone preference in one of the following:
- php.ini
- Your Apache vhost
- .htaccess
- Wherever else it would work
Yes, your php.ini file is located in the same timezone as the server. But apparently, the PHP devs would like you to set a very special PHP-only timezone, because the one you set for PHP is going to be somehow more reliable than the one you set for the system.
See the date.timezone section of,
http://www.php.net/manua/en/datetime.configuration.php
for possible values.
I find that my "php.ini" DOES have:
date.timezone = "America/Vancouver" in it.
Seems as tho my php system doesn't like that!
can it be placed inside ROUNDCUBE anywhere ? _______________________________________________ List info: http://lists.roundcube.net/users/ BT/9b404e9e
On 11/05/2010 12:34 PM, Jim Pazarena wrote:
See the date.timezone section of,
http://www.php.net/manua/en/datetime.configuration.php
for possible values.
(How did I lose the 'l' in that URL?)
I find that my "php.ini" DOES have:
date.timezone = "America/Vancouver" in it.
Seems as tho my php system doesn't like that!
can it be placed inside ROUNDCUBE anywhere ?
Are you sure that you're using the php.ini that you think you're using? Adding it to php.ini was sufficient for me. Apache might need to be restarted, depending on how you've got PHP implemented.
You can't just stick the value anywhere in RoundCube, but you should be able to use something like,
php_value date.timezone "America/Vancouver"
in your .htaccess file.
If you want to set it in the *code*, you would have to use,
date_default_timezone_set("America/Vancouver");
but I don't think that's a very good idea. _______________________________________________ List info: http://lists.roundcube.net/users/ BT/9b404e9e