Roundcube Community Forum

Release Support => Release Discussion => Topic started by: joacimmelin on December 01, 2009, 05:26:16 AM

Title: date.timezone error on Snow Leopard Server
Post by: joacimmelin on December 01, 2009, 05:26:16 AM
Snow Leopard Server version: 10.6.2
Roundcube version: 0.3.1

Install went smoothly but one error remains:

the errors log are packed with this line:

Quote[01-Dec-2009 10:32:31] 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 'Europe/Berlin' for 'CET/1.0/no DST' instead in /Library/WebServer/Documents/webmail/program/include/main.inc on line 1020

I have tried two solutions for this:

1. Enter this line in the .htaccess file:

Quotephp_value       date.timezone CET

2. enter this line in the main.inc.php file:

Quote$rcmail_config['timezone'] = 'CET';

Neither helps. The problem is pretty annoying since the errors log is growing _very_ fast.

Any ideas?

Thanks,

Joacim
Title: date.timezone error on Snow Leopard Server
Post by: SKaero on December 01, 2009, 12:27:55 PM
See if this helps: http://us2.php.net/manual/en/function.date-default-timezone-set.php
Title: date.timezone error on Snow Leopard Server
Post by: rcrcr on December 09, 2009, 09:50:33 AM
Did you solve this, Joacim? I am having the same issue on Snow Leopard Server.
Title: date.timezone error on Snow Leopard Server
Post by: dshepherd on December 09, 2009, 10:46:34 AM
Do you have access to your php.ini file? This is the easiest way to solve the problem.
If so, look for the date.timezone line and set to a value which you can fine here: PHP: List of Supported Timezones - Manual (http://us2.php.net/manual/en/timezones.php).

Trying to set as you have in the .htaccess file will only work if this has been enabled, which it doesn't look like it has.

Changing in the main.inc.php will not satisfy the php errors that you are getting.
Title: date.timezone error on Snow Leopard Server
Post by: smultronstallet on December 24, 2009, 03:13:42 AM
Quote from: dshepherd;23825Do you have access to your php.ini file? This is the easiest way to solve the problem.
If so, look for the date.timezone line and set to a value which you can fine here: PHP: List of Supported Timezones - Manual (http://us2.php.net/manual/en/timezones.php).

This solution worked for me on Mac OS X 10.6.2 Server. I set the appropriate line in /etc/php.ini to:

date.timezone = 'America/North_Dakota/Center'

and now I'm no longer getting these errors. Thanks!