date.timezone is not set - errors captured in log file, but i have set time zone in php.ini file

Hi All,
I have set the time zone in php.ini file when installed in suite CRM. Now the blow errors captured in log file.

[FATAL] Configuration variable date.timezone is not set, guessed timezone UTC. Please set date.timezone=“UTC” in php.ini!

How to rectify this.??

I think am getting this errors because of work flow or scheduler running.

Kindly let me know the solution to fix it.

Hi,

It may be that the date.timezone is not set for cli (which the cron scheduler uses). Be sure to set date.timezone in both the server php.ini and cli php.ini.

On my ubuntu system they can be found in:

/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini

Hope this helps,
Jim

1 Like

Thank you Jim,

Its working fine.