Skip to content

Commit

Permalink
Fixed #3738 year validation should be limited to 2 digit years
Browse files Browse the repository at this point in the history
  • Loading branch information
shai-almog authored Sep 29, 2023
1 parent b36b68d commit 2330df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodenameOne/src/com/codename1/l10n/SimpleDateFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,8 @@ int parseYear(String source, String token, int ofs) throws ParseException {
if (year > (thisYear + 20)) {
year -= 100;
}
validateNumber(year, ofs, "year", 1000, thisYear + 1000);
}
validateNumber(year, ofs, "year", 1000, thisYear + 1000);
return year;
}

Expand Down

0 comments on commit 2330df7

Please sign in to comment.