Page 1 of 1

Add support for different calendar timezone

PostPosted: Mon Oct 17, 2011 10:08 am
by rak
If the timezone of your server and calendar are different - eg. running on a server in California and displaying a calendar for events in Tokyo (16hrs ahead) - then the 'Today' indicator might show the wrong day.

If your server runs PHP 5.1, you can add this line to ac-config.inc.php to set the timezone for the calendar:
Code: Select all
date_default_timezone_set('Asia/Tokyo');

Replace 'Asia/Tokyo' with the timezone you need, find the correct format here: http://www.php.net/manual/en/timezones.php

This will only work with PHP 5.1, I'm not sure if there's a way to easily do this with PHP 3/4.

Re: Add support for different calendar timezone

PostPosted: Mon Oct 17, 2011 4:03 pm
by chris
This is a good suggestion..
Now, my issue would be how to make this a configuration value as opposed to having to modify the code.
It is something that I should consider for future versions.

Thanks.

Chris