This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch FREEMARKER-35
in repository https://gitbox.apache.org/repos/asf/freemarker.git
The following commit(s) were added to refs/heads/FREEMARKER-35 by this push:
new e0c4325 [FREEMARKER-35] Fixed: Added workaround to avoid Java bugs
when formatting months in standalone text style
e0c4325 is described below
commit e0c4325870d2606b698d52828e54150ba58418d0
Author: ddekany <[email protected]>
AuthorDate: Wed Dec 29 00:38:02 2021 +0100
[FREEMARKER-35] Fixed: Added workaround to avoid Java bugs when formatting
months in standalone text style
---
src/main/java/freemarker/template/utility/DateUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/freemarker/template/utility/DateUtil.java
b/src/main/java/freemarker/template/utility/DateUtil.java
index f2830ad..11fe510 100644
--- a/src/main/java/freemarker/template/utility/DateUtil.java
+++ b/src/main/java/freemarker/template/utility/DateUtil.java
@@ -942,7 +942,7 @@ public class DateUtil {
}
if (textStyle == TextStyle.FULL_STANDALONE
- &&
!JavaTimeBugFlags.hasGoodShortStandaloneMonth(locale)) {
+ &&
!JavaTimeBugFlags.hasGoodFullStandaloneMonth(locale)) {
textStyle = TextStyle.FULL;
}