You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The validation using pattern FASTDATETIME fails to catch invalid dates where the day is within the 1-31 range, but the month does not have 31 days (e.g. 31 November).
Solution
The definition of private static boolean testDateTime(String value)here
should be rewritten to return
Instant.parse(value);
instead of
FASTDATETIME.matcher(value).find();
The text was updated successfully, but these errors were encountered:
Version
4.3.5
Context
The validation using pattern FASTDATETIME fails to catch invalid dates where the day is within the 1-31 range, but the month does not have 31 days (e.g. 31 November).
Solution
The definition of
private static boolean testDateTime(String value)
hereshould be rewritten to return
Instant.parse(value);
instead of
FASTDATETIME.matcher(value).find();
The text was updated successfully, but these errors were encountered: