diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2019-03-16 20:44:12 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2019-03-16 20:44:12 +0000 |
commit | 19005a4e63b6855c6cb889ba546781cb43fc22f5 (patch) | |
tree | fa1ea984d3b38be097d76b901da45557f4c4a7f6 | |
parent | aa438b6f2db5dc503d772a8d1e1a9036e5d6fadd (diff) | |
download | poi-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.java | 2 |
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(); /** |