]> source.dussan.org Git - poi.git/commitdiff
Fix forbidden apis error
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 16 Mar 2019 20:44:12 +0000 (20:44 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 16 Mar 2019 20:44:12 +0000 (20:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1855672 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/usermodel/DateUtil.java

index 82cf7f6e5c1599035e35782473d412be1ea92a0d..a46a94c68442062baeac7b1ef65d1a7da26232a7 100644 (file)
@@ -71,7 +71,7 @@ public class DateUtil {
             .appendPattern("[[yyyy ]dd-MMM[-yyyy]][[ ]h:m[:s] a][[ ]H:m[:s]]")
             .appendPattern("[M/dd[/yyyy]][[ ]h:m[:s] a][[ ]H:m[:s]]")
             .appendPattern("[[yyyy/]M/dd][[ ]h:m[:s] a][[ ]H:m[:s]]")
-            .parseDefaulting(ChronoField.YEAR_OF_ERA, Calendar.getInstance().get(Calendar.YEAR))
+            .parseDefaulting(ChronoField.YEAR_OF_ERA, LocaleUtil.getLocaleCalendar().get(Calendar.YEAR))
             .toFormatter();
 
     /**