Forums

Mootools Calendar min date issue in Firefox

luxhodge 19 Nov, 2013
Hello!

I am using the Mootools date picker element in a form. I have the datepicker settings set to Mootools Datepicker with DashBoard set for style under the general tab in the form properties. I added this under DateTime Picker Config: format:'%m-%d-%Y',minDate: start_date. I then added this in a Load JS action in the onload even for the form: var start_date = new Date();. The calendar works fine (including limiting the start date to today's date) for Chrome v31.0.1650.57 m, Safari v5.1.7, Internet Explorer v11.0.96 and the iOS7.3 version of Safari. However with Firefox v25.01 and Opera v12.16, the calendar starts at December 1969?! Anyone out there seen this before? How did you fix it? Please let me know. Not sure what else to try at this point. Thanks!

Erik
GreyHead 20 Nov, 2013
Hi Erik,

Not something I've seen before. The Dec 1969 comes from an 'empty' date so I guess that the minDate isn't being set in those browsers. Please post a link to the form so I can take a quick look.

Bob
luxhodge 20 Nov, 2013
More information: if no date is entered, the calendar works fine. However, if there is a session in progress (like if you entered the date, went to the next page and then go back to the first page), the calendar comes up with December 1969. This only happens in Firefox v25.01.
This topic is locked and no more replies can be posted.