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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Event Calendar - StartTime and EndTime


Go to End


10 Posts   4011 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

23 August 2011 at 5:03am

CalendarDateTime::set_time_format('12');

Avatar
tuck

Community Member, 2 Posts

23 August 2011 at 6:32am

UncleCheese, I set CalendarDateTime::set_time_format('12') and that only affects the admin page but when displaying $StartTime on my homepage I still get the 24 hour.

I also found that if I set the CalendarDateTime in the site _config it doesn't update but if changed in the module itself then the admin page shows 12 hour. This is fine but if I update your module my settings will be overwritten. Any ideas?

Go to Top