Skip to content

Commit

Permalink
Code comment is added
Browse files Browse the repository at this point in the history
  • Loading branch information
solomax committed Sep 1, 2023
1 parent 602b7ca commit 78c2e98
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ private static String toJavaScriptDateFormat(final String _fmt) {
String jsFormat = nullToEmpty(_fmt).replace(" a", " t");
Matcher yearMatcher = YEAR_PATTERN.matcher(jsFormat);
if (yearMatcher.find()) {
// this code is required while https://github.com/Eonasdan/tempus-dominus/issues/2855 is not fixed :(
String year = yearMatcher.group(1);
// only 2 or 4 'yyyy' are supported
if (year.length() < 2 || year.length() > 2) {
Expand Down

0 comments on commit 78c2e98

Please sign in to comment.