Author Topic: (SOLVED) Log full of PHP Warning: date():  (Read 1739 times)

Offline SipriusPT

  • Jr. Member
  • **
  • Posts: 36
(SOLVED) Log full of PHP Warning: date():
« 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?
« Last Edit: November 23, 2016, 12:21:23 PM by SipriusPT »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,533
    • http://SKaero.com/
Re: Log full of PHP Warning: date():
« Reply #1 on: November 22, 2016, 05:37:59 AM »
Did you restart your web server after you made the change?

Offline SipriusPT

  • Jr. Member
  • **
  • Posts: 36
Re: Log full of PHP Warning: date():
« Reply #2 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!!!