I have set in config/main.inc.php :
$rcmail_config['timezone'] = 'America/New_York';
And /etc/php.ini:
; Defines the default timezone used by the date functions ; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone date.timezone = "America/New_York"
However, whenever a user logs into Roundcube (and gets a new record in the database with no user-specific preferences yet), they are still seeing the date/times of messages in the Inbox as UTC.
I have to login as that user, go to their user-specific settings and set the timezone to the "(GMT -5:00) Eastern Time" choice in the drop-down menu for the timezone.
Does Roundcube not understand 'America/New_York'?
For the moment I've resorted to setting a default value for that field in the database so that new users end up in the EST timezone as a default.
On 11.08.2011 14:07, Thomas Harold wrote:
$rcmail_config['timezone'] = 'America/New_York';
Does Roundcube not understand 'America/New_York'?
Yes, it doesn't. You must use numeric value, -5.
On 8/11/2011 8:23 AM, A.L.E.C wrote:
On 11.08.2011 14:07, Thomas Harold wrote:
$rcmail_config['timezone'] = 'America/New_York';
Does Roundcube not understand 'America/New_York'?
Yes, it doesn't. You must use numeric value, -5.
Thanks, that was indeed it.
Alternately, I was able to set things in php.ini:
date.timezone = "America/New_York"
With Roundcube set back to 'auto':
$rcmail_config['timezone'] = 'auto'; $rcmail_config['dst_active'] = (bool)date('I');
And it is now picking up the correct timezone for new users, without them having to manually configure it.
On Thu, 11 Aug 2011 08:07:51 -0400, Thomas Harold wrote:
Does Roundcube not understand 'America/New_York'?
lets put user preferances in php.ini :)
roundcube confs have defaults, if users want non default settings let them, no ?