Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: SipriusPT on November 22, 2016, 05:01:19 AM

Title: (SOLVED) Log full of PHP Warning: date():
Post by: SipriusPT on November 22, 2016, 05:01:19 AM
Hello guys,

I have notice that i am having my roundcube logs full of,

[22-Nov-2016 09:54:16 UTC] PHP Warning:  date(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Library/Server/Web/Data/Sites/Default/program/lib/Roundcube/rcube_utils.php on line 1256

After setting date.timezone in php.ini to my current location (Europe/Lisbon), the error remains, and i dont know where is the date_default_timezone_set(), or if there is other way to solve this, because i have already installed roundcube some time ago and i didnt had this problem before.

Here is the syntax that i have used in php.ini:

; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = 'Europe/Lisbon'

In my system clock i have the right time zone for me.

Anyone?
Title: Re: Log full of PHP Warning: date():
Post by: SKaero on November 22, 2016, 05:37:59 AM
Did you restart your web server after you made the change?
Title: Re: Log full of PHP Warning: date():
Post by: SipriusPT on November 22, 2016, 06:12:26 AM
Did you restart your web server after you made the change?

Damn i forgot to do that! Thanks again SKaero is now working!!!