aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2019-03-16 20:44:12 +0000
committerAndreas Beeker <kiwiwings@apache.org>2019-03-16 20:44:12 +0000
commit19005a4e63b6855c6cb889ba546781cb43fc22f5 (patch)
treefa1ea984d3b38be097d76b901da45557f4c4a7f6
parentaa438b6f2db5dc503d772a8d1e1a9036e5d6fadd (diff)
downloadpoi-19005a4e63b6855c6cb889ba546781cb43fc22f5.tar.gz
poi-19005a4e63b6855c6cb889ba546781cb43fc22f5.zip
Fix forbidden apis error
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1855672 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/poi/ss/usermodel/DateUtil.java2
1 files changed, 1 insertions, 1 deletions
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();
/**