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.

All other Modules

Discuss all other Modules here.

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

Event Calendar - Years reverting to 1969 ?


Reply

11 Posts   1882 Views

Avatar
house98

10 January 2010 at 4:06am Community Member, 31 Posts

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

:D

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?

:D

Sure hope this helps.

Thanks again....

-- Matt

Avatar
house98

10 January 2010 at 4:21am Community Member, 31 Posts

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

Avatar
house98

10 January 2010 at 4:34am Community Member, 31 Posts

MWAHAHAHA !!! I got it!

I saw this thread: [url]http://www.silverstripe.org/all-other-modules/show/268928#post268928[/url] 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