Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » How to set timezone on event calendar? To Australian Timezone but server is held in US.

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 960 Views
  • TF-35Lightning
    Avatar
    Community Member
    137 Posts

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

    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.

    960 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.