Form.Validator (validate.date): 'Date' set of Locale is undefined #1168

Closed
grssnbchr opened this Issue Dec 3, 2012 · 1 comment

Comments

Projects
None yet
2 participants

I don't really know if this is a bug or if I have a bug in my own script, but to me, the former is more plausible in this case.

Locale.use('de-CH');

Now, when I use Form.Validator with the validate-date validator, I get an error saying that dateLocale is not defined, because Locale.getCurrent().sets.Date is undefined, which is because 'de-CH' inherits from 'de-DE' (using 'de-DE' in the first place doesn't result in an undefined sets.Date). Shouldn't the set be accessed via Locale.getCurrent().get('Date') or Locale.get('Date')?

timwienk closed this in 26468cb Dec 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment