error date.timezone setting not detected in /etc/php5/apache2/php.ini falling back to UTC

wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Wed, 2012-10-31 18:29

Suddenly I get this line repeated many times in my var/logs

Quote:
2012-11-01 05:09:01 +11:00 --- error: date.timezone setting not detected in /etc/php5/apache2/php.ini falling back to UTC. Consult http://php.net/manual/function.get-cfg-var.php for help.

How can it be fixed?

Thanks,

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2012-10-31 19:28

Edit the php.ini adding the timezone you want.
https://www.google.com/search?q=date.timezone+setting+php.ini&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
Your host might be a better option if you can't edit the ini file.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team