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

Bug in Chrome, Safari validate date. #20

Closed
tarascv opened this issue Nov 25, 2010 · 9 comments
Closed

Bug in Chrome, Safari validate date. #20

tarascv opened this issue Nov 25, 2010 · 9 comments

Comments

@tarascv
Copy link

tarascv commented Nov 25, 2010

Failing for a valid date in Chrome/Safari, but passing in Firefox, IE etc.
Chrome/Safari seems to ignore the current locale when it creates the date object, so a valid date in UK dd/mm/yy format – 28/11/2010 – fails as Chrome seems to interpret it in US mm/dd/yy format.

@jamesspencer
Copy link

I've also hit upon this Chrome deviance - be great if the docs could be updated to reflect the issue: http://docs.jquery.com/Plugins/Validation/Methods/date

@TangoMikeOscar
Copy link

I've also come across this issue with UK date validation. If you have a look at this blog post it mentions the simple fix for this.
http://geekswithblogs.net/EltonStoneman/archive/2009/10/29/jquery-date-validation-in-chrome.aspx

Looking forward to a new version with the fix.

Thanks

@kristofferahl
Copy link

I have encountered this problem as well in Safari (not in Chrome though). Any ideas on when this will be fixed?

@mccalltd
Copy link

stevephillips my hero! Was having this trouble in Safari and thanks to you I can move on to better things. Had to fix in v1.9, FYI.

@nathanpitman
Copy link

I'm seeing this too in Chrome and Safari when using UK dates, would be great to see it fixed!

@travcurrit
Copy link

I'm still seeing this in Chrome, would be great to have it fixed or at least a warning in the documentation

@EricMKaufman
Copy link

I'm stilling see this error in Safari for iOS.

@ctolkien
Copy link

Bump..? Getting hit by this as well for AU date formats (same as the en-gb).

@jzaefferer
Copy link
Collaborator

The date method is terrible, since the built-in Date object is terrible. I don't see an alternative to dropping that method, replacing it with Globalize, see #581.

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

10 participants