HOWTO: Remove the timezone errors in your sugarcrm.log file

sugarcrmdevelopers —  August 18, 2011 — 12 Comments

If you’re running on PHP 5.3, you may have seen errors like this in your php.ini file:

Configuration variable date.timezone is not set, guessed timezone
America/Chicago. Please set date.timezone="America/Chicago" in php.ini!

This is because a change in the how PHP determines what timezone you are using in PHP 5.3. Before PHP 5.3, PHP would rely on the host operating system’s timezone setting for this value. However, this isn’t considered reliable, so as of PHP 5.3 you need to specify it directly. You can do the easily by editing your php.ini file and adding the following line ( assuming your timezone in America/Chicago, see here for all the valid options ).


See this page in the PHP Documentation for more details.

12 responses to HOWTO: Remove the timezone errors in your sugarcrm.log file


    I’ve already set up time zone variable in php.ini but sugarcrm.log continues to log this error: how to stop it?


      Sounds like it’s not getting picked up. Can you verify it is via the output of phpinfo()?


        I have the same problem and phpinfo shows a correct setting. what else can i check?


          Hi Paul. I had the same issue. Once your php.ini file has been edited. Be sure to stop apache (or other) web server.  Then restart the web server. Once I did this, the timezone-related errors did not get sent to the log file.  Hope this helps.


            Hi Paul, i’m having the same issue, i’ve restarted apache, stopped it, waited, started it. etc… still getting the error logged in sugarcrm!


    Hi everybody,

    my php ini is good (Europe/Paris).

    i want to know where i can change Europe/Berlin in my crm directory !

    and i want to know why the Europe/Berlin was choosen automaticaly ?


    Even if phpinfo() reports date.timezone is correctly set, be sure to set every php.ini that is in your system, for example:

    /etc/php5/apache2/php.ini (Configuration for mod_php)
    /etc/php5/cgi/php.ini (Configuration for scripts run via CGI)
    /etc/php5/cli/php.ini (Configuration for command-line scripts)


    Did not help, still keep getting log messages, any other advice?

Trackbacks and Pingbacks:

  1. HELP Sugar Feed not showing for users - SugarCRM Forums - August 24, 2011

    […] […]

  2. Label in studio shows Null - SugarCRM Forums - August 25, 2011

    […] […]

  3. CE 6.4.3 to 6.5.5 upgrade problem - October 1, 2012

    […] […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s