From: Andreas Beeker Date: Sat, 16 Mar 2019 20:44:12 +0000 (+0000) Subject: Fix forbidden apis error X-Git-Tag: REL_4_1_0~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=19005a4e63b6855c6cb889ba546781cb43fc22f5;p=poi.git Fix forbidden apis error git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1855672 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/ss/usermodel/DateUtil.java b/src/java/org/apache/poi/ss/usermodel/DateUtil.java index 82cf7f6e5c..a46a94c684 100644 --- a/src/java/org/apache/poi/ss/usermodel/DateUtil.java +++ b/src/java/org/apache/poi/ss/usermodel/DateUtil.java @@ -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(); /**