Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How to set timezone on event calendar? To Australian Timezone but server is held in US.


Reply


1000 Views

Avatar
TF-35Lightning

Community Member, 137 Posts

28 October 2010 at 3:38pm

Hi guys,
I'm trying to modify the timezone for the event calendar so that it displays to the Australian timezone and not US eastern.
At the moment on the livecalendarwidget the "current day" is displayed as a day behind (because the US are just about a day behind)

The default settings I see related to it are in the Event_calendar/_config.php

Calendar::set_param('language','EN');
Calendar::set_param('timezone', 'US-Eastern');

CalendarDateTime::set_param('offset','-4:00');

CalendarDateTime::set_date_format('dmy');
CalendarDateTime::set_time_format('24');

i18n::include_locale_file('event_calendar', 'en_US');

I have tried
Calendar::set_param('timezone', 'Australia-Victoria');
Calendar::set_param('timezone', 'AEST');

and also played with the CalendarDateTime::set_param('offset','-4:00'); and have tried putting that forward by 20+ hours or so but nothing seems to change it.

I am doing dev/build/ and ?flush after each change.

I might also add that the server I am testing this on is in the US. My local server servers up the correct Aus time/current day.

If anyone know what I might need to do would be great.