Side navigation
#9891 closed bug (invalid)
Opened July 22, 2011 09:34AM UTC
Closed July 22, 2011 10:42AM UTC
Validation of localized dates
Reported by: | info@kuvalda.spb.ru | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | misc | Version: | 1.5.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have page with jquery.validate.js and date field.
I use latest Chrome, IE and FF.
The page locale and http headers locale setting to RU.
Windows and browser locales also setted to RU.
The dates like 28.01.2011 (there is 01/28/2011 in US) cause "Please enter a valid date." validation message. (I use UI Datepicker to select date.)
I debug and find that validation function line:
!/Invalid|NaN/.test(new Date(value))
cannot test localized date. I test Chrome. FF and IE all latest versions.
Googling trouble I found that
http://stackoverflow.com/questions/2385474/set-a-locale-in-javascript - users have some problem.
http://geekswithblogs.net/EltonStoneman/archive/2009/10/29/jquery-date-validation-in-chrome.aspx
- this describe problem (at 2009 year!) and workarround that required to change jquery.validation script.
Are you can fix it?
Attachments (0)
Change History (1)
Changed July 22, 2011 10:42AM UTC by comment:1
component: | unfiled → misc |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Thank you for submitting a ticket to the jQuery core bug tracker! Unfortunately, we are unable to assist with issues related to third party plugins or jQuery UI.
For assistance with the validation plugin, please directly contact the plugin author, either via their GitHub account or the plugin site. For UI issues, please re-submit your ticket to the jQuery UI bug tracker.
If they or you are able to reduce the issue experienced down to a problem with jQuery core that can be demonstrated outside of the plugin, we'll be happy to take another look at this.