Jump to:

10846 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar - Years reverting to 1969 ?

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 1727 Views
  • house98
    Avatar
    Community Member
    31 Posts

    Re: Event Calendar - Years reverting to 1969 ? Link to this post

    Ok... i'm getting a bit closer to at least figuring out what the interruption in dates is!

    It has to do with my system, and how dates are retrieved -- back to your original thought on an 'incorrect date' gives that 1969 result.

    That said... after I saved the events from my previous post, then went back to look at them... this is what I saw:

    See? I think it's taking the dates entered (example in myd) 01/01/2010 as Jan 01, 2010. however I think it's taking 01/02/2010 as Feb 01, 2010, instead of Jan 2, 2010 ... Am I right? That makes sense, as dates entered from the 13th and beyond wind up with the 1969 year!

    So, the underlying question now is "WTF" does it do that?

    Sure hope this helps.

    Thanks again....

    -- Matt

  • house98
    Avatar
    Community Member
    31 Posts

    Re: Event Calendar - Years reverting to 1969 ? Link to this post

    Ok, so tried changing my _config from dmy to mdy...

    Looks to be the same thing.

    Back-end:

    Front-end:

    Not much more I think I can figure to test... so I'll await your response

    -- Matt

  • house98
    Avatar
    Community Member
    31 Posts

    Re: Event Calendar - Years reverting to 1969 ? Link to this post

    MWAHAHAHA !!! I got it!

    I saw this thread: http://www.silverstripe.org/all-other-modules/show/268928#post268928 where you said the following:

    Make sure you're using

    CalendarDateTime::set_date_format('mdy') // or "dmy"
    CalendarDateTime::set_time_format("12") // or "24"
    DatePickerField::set_date_format('mdy') // or 'dmy'

    I noticed where my _config did not have the DatePickerField ... so I went ahead and set mine to match my CalendarDateTime::set_date_format...

    AND VOILA!!

    Hope this helps others... And thanks again UncleCheese for such a great module!

    -- Matt

    1727 Views
Page: 1 2
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.