Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar date formats

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 940 Views
  • redactuk
    Avatar
    Community Member
    115 Posts

    Event Calendar date formats Link to this post

    I have to say i'm still confused about who to go about swapping around the format dates are displayed in the Event Calendar. As my config local is set to:

    i18n::set_locale('en_GB');

    I was kinda hoping that creating an en_GB file under /events_calendar/lang and swapping around all the formats would do the job, but it does not. Can anyone help me as to how I get that file to be applied? or the proper solutions if that's not it.

    Thanks

  • redactuk
    Avatar
    Community Member
    115 Posts

    Re: Event Calendar date formats Link to this post

    Anyone please help me with this?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar date formats Link to this post

    In event_calendar/_config.php, you'll see a big block of code for $customDateTemplates. Copy all of that into your mysite/_config.php, uncomment it, and hopefully it's self-explanatory. It's not the prettiest thing in the world, but it gives you the most flexibility.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • wilsonStaff
    Avatar
    Community Member
    142 Posts

    Re: Event Calendar date formats Link to this post

    Hi, not to hijack, its a similar problem.

    Ive succeeded into displaying the calendar in French, using

    setlocale(LC_ALL, 'fr_FR.UTF8', 'fr_FR', 'fr-FR', 'french'); into mysite/_config.php

    but if it correctly displays the calendar in French, it displays the wrong day/date.

    As image below shows, we are SATURDAY 2nd and the calendar displays FRIDAY 22nd.

    - - -

    My guess is that it picks up the date correctly but as the week starts with Sundat, it offsets everything. So, what to do?

    - - -

    Uncle?

    940 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.