date.timezone settings with nginx on ubuntu 140.4

Hi,

I am struggling with date.timezone errors after a clean installation of suitecrm Version 7.2.3.

This is the error I am getting on every cron run:

Fri Aug 14 10:49:43 2015 [3815][-none-][FATAL] Configuration variable date.timezone is not set, guessed timezone Europe/Berlin. Please set date.timezone="Europe/Berlin" in php.ini!

This is the php.ini file in which I have properly set date.timezone setting to “Europe/Ljubljana”, which is valid value:

Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini

Also, date.timezone settings in php.ini used by fpn is properly set. But this should not effect cron jobs, since they run in cli.

I’ve also tried different timezones (Berlin, Amsterdam, …), but no good…

I’ve read lots of posts about similar problem, but none solved my problem. Can anyone share some info about this?

Hi,

Please check that the date.timezone line in your php.ini does not have a Semicolon at the start of the line so it would simply be

date.timezone="Europe/Ljubljana"

and not

;date.timezone="Europe/Ljubljana"

Also, You may need to do an apache restart for this change to take effect.

Regards, John