aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-09-23 20:16:54 +0000
committerPJ Fanning <fanningpj@apache.org>2021-09-23 20:16:54 +0000
commit3f6a7285fb9729d6e3d4449fc47d06a13ce635e7 (patch)
treef0e07fe625618e9d2ddf1a2f4c116be1dcdf15c9
parent8dc976cf31283246e3508631bdd2d5ad5cf7fae3 (diff)
downloadpoi-3f6a7285fb9729d6e3d4449fc47d06a13ce635e7.tar.gz
poi-3f6a7285fb9729d6e3d4449fc47d06a13ce635e7.zip
forbidden api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893581 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java b/poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java
index 1b23d8dcce..036e309bf0 100644
--- a/poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java
+++ b/poi/src/main/java/org/apache/poi/ss/usermodel/DateUtil.java
@@ -83,7 +83,7 @@ public class DateUtil {
.appendPattern("[M/dd[/yyyy]][[ ]h:m[:s][.SSS] a][[ ]H:m[:s][.SSS]]")
.appendPattern("[[yyyy/]M/dd][[ ]h:m[:s][.SSS] a][[ ]H:m[:s][.SSS]]")
.parseDefaulting(ChronoField.YEAR_OF_ERA, LocaleUtil.getLocaleCalendar().get(Calendar.YEAR))
- .toFormatter();
+ .toFormatter(LocaleUtil.getUserLocale());
/**
* Convert a Java Date (at UTC) to LocalDateTime.