Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calendar Date Picker - Off by One Month? SOLVED
12-02-2017, 02:56 AM, (This post was last modified: 12-02-2017, 03:13 AM by TimSchofield.)
#6
RE: Calendar Date Picker - Off by One Month?
The problem is this then shows the wrong date for d/m/Y date formats.

I need to find time to properly look into this.

Tim
(12-02-2017, 02:56 AM)falkoner Wrote: The problem is this then shows the wrong date for d/m/Y date formats.

I need to find time to properly look into this.

Tim

Turned out to be easier than I expected. Change lines 252/253 of javascripts/MiscFunctions.js to be the following:

m = parseInt(dA[0], 10)-1;
d = parseInt(dA[1], 10);

Thanks
Tim
Reply


Messages In This Thread
RE: Calendar Date Picker - Off by One Month? - by TimSchofield - 12-02-2017, 02:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)