diff --git a/bootstrap-extensions/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/form/tempusdominus/TempusDominusLocalizationConfig.java b/bootstrap-extensions/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/form/tempusdominus/TempusDominusLocalizationConfig.java index ea2fba6c9..e85f3c244 100644 --- a/bootstrap-extensions/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/form/tempusdominus/TempusDominusLocalizationConfig.java +++ b/bootstrap-extensions/src/main/java/de/agilecoders/wicket/extensions/markup/html/bootstrap/form/tempusdominus/TempusDominusLocalizationConfig.java @@ -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) {