What steps will reproduce the problem?
1. Have a German Windows :)
2. Run the ValidatorTest JUnit test
3. See that testIsValidDate fails
Fix:
Replace the old code:
...
final Validator instance = ESAPI.validator ();
final DateFormat format = DateFormat.getDateInstance();
assertTrue (instance.isValidDate ("datetest1", "September 11, 2001", format, true));
...
With the new code:
...
final DateFormat format = DateFormat.getDateInstance (DateFormat.DEFAULT, Locale.US);
assertTrue (instance.isValidDate ("datetest1", "September 11, 2001", format, true));
...
Original issue reported on code.google.com by philip@helger.com on 16 May 2012 at 10:31
Original issue reported on code.google.com by
philip@helger.com
on 16 May 2012 at 10:31