Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-Open: Datepicker mixes up month and day on %m/%d/%y #168

Open
Lengen1971 opened this issue Jul 13, 2016 · 12 comments
Open

Re-Open: Datepicker mixes up month and day on %m/%d/%y #168

Lengen1971 opened this issue Jul 13, 2016 · 12 comments

Comments

@Lengen1971
Copy link

Lengen1971 commented Jul 13, 2016

Hi, when picking a date it´s been shown correctly in my textfield.
By calling the picker again it mixes up month and date.

For example:

  • choosing Dec. the 8th in 2016 by click
  • textfield showing: 12/08/2016 <- right!
  • calling the picker again, it opens with 12th of August in 2016 <- wrong.
  • it does NOT happen when a digit is higher than 12:
  • choosing the 24th of Dec in 2016
  • textfield showing 12/24/2016 <- right!
  • calling the picker again it shows (right) the 24th of Dec.

w/regards
Michel

@SergioCrisostomo
Copy link
Collaborator

@Lengen1971 could you make a jsFiddle with a example?
If you want you can adapt this one: https://jsfiddle.net/6d53f3qr/

@Lengen1971
Copy link
Author

Hi, sry, I can´t, it´s inside a CMS, I can´t get it extracted...

@SergioCrisostomo
Copy link
Collaborator

@Lengen1971 if we cannot reproduce it we cant fix it.

You could check the rendered HTML and adapt the jsFiddle so you can reproduce the problem. Also we need to know which version of MooTools and DatePicker you are using.

@Lengen1971
Copy link
Author

ok, I´m not that firm with that, but I will try. Before have a look:

https://1drv.ms/u/s!Alfgh2PE9ujTu0U5RnNRjdye7nFA

@Lengen1971
Copy link
Author

Waaa, so much code, I can´t get this running properly....

@SergioCrisostomo
Copy link
Collaborator

@Lengen1971 ping back when you managed to make a example we can test in jsFiddle. Closing.

@Lengen1971
Copy link
Author

Mootools Version: 1.5.1
DatePicker: 2.2.0

@Lengen1971
Copy link
Author

Well, great. Thanx4nuthin.

@AbcAeffchen
Copy link

@Lengen1971 No reason to be rude.

I Just tested it locally using MooTools 1.6.0 (I cannot find a Mootools-More 1.5.1 build) and your example. I cannot see a bug. It works just fine. It also works fine with the older version 1.4.1.

If you really want this bug to be fixed, you have to show where this bug is and this includes a minimal example. Until then it looks like the bug is not caused by mootools-datepicker.

@Lengen1971
Copy link
Author

Hi,

thanks for your patience. Here you can find a minimal example on the related files:

http://goo.gl/ZlR0bg http://goo.gl/ZlR0bg

  • pick a date: 3rd of August
  • look the field: 08/03/2016 <- fine.
  • click again on the toggler
  • picker shows 8th of March <- wrong!

I also tested mootools more 1.6.0, but jS-error: ReferenceError: Locale is not defined.
Switched back to 1.5.1.

Thanks and w/regards
Michael

Am 13.07.2016 um 18:59 schrieb Alex Schickedanz notifications@github.com:

@Lengen1971 https://github.com/Lengen1971 No reason to be rude.

I Just tested it locally using MooTools 1.6.0 (I cannot find a Mootools-More 1.5.1 build) and your example. I cannot see a bug. It works just fine. It also works fine with the older version 1.4.1.

If you really want this bug to be fixed, you have to show where this bug is and this includes a minimal example. Until then it looks like the bug is not caused by mootools-datepicker.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #168 (comment), or mute the thread https://github.com/notifications/unsubscribe/ABzo5uPqTOIYPScI29npC_RwwIgk9uG0ks5qVRlwgaJpZM4JLU4U.

@Lengen1971 Lengen1971 changed the title Datepicker mixes up month and day on %m/%d/%y Re-Open: Datepicker mixes up month and day on %m/%d/%y Jul 15, 2016
@SergioCrisostomo
Copy link
Collaborator

made jsFiddle from shortlink: http://jsfiddle.net/8a4po4q4/
Reopening.

@Lengen1971
Copy link
Author

Hi, so, errr, nothing new about it? I see the jsfiddle isn´t working anymore. Any conclusions so far?

I good guy helped me out by telling me to add some spaces to the format to get this working.

Format: m / d / Y <- spaces between the chars and slashes.
Date: 06 / 08 / 2016 is correctly recognized as 8th of June.

Will you still going to manage this issue/bug?

best regards
Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants