10379 Posts in 2194 Topics by 1710 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 699 Views |
-
Event Calendar date formats

16 August 2011 at 1:27pm
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
-
Re: Event Calendar date formats

19 August 2011 at 1:26am
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 -
Re: Event Calendar date formats

23 October 2011 at 3:01am
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?
| 699 Views | ||
|
Page:
1
|
Go to Top |


