aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-01-01 23:26:25 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-01-01 23:26:25 +0000
commit6658a0b6645cbb835f3a430f3dc76f66d25ef74d (patch)
treedef1e04199677dc209028349fa9d41cc8f4c7bf9 /src/testcases/org/apache/poi
parentdc72c1a009a3402bb99d21e827fb3ab3a0d8a0d0 (diff)
downloadpoi-6658a0b6645cbb835f3a430f3dc76f66d25ef74d.tar.gz
poi-6658a0b6645cbb835f3a430f3dc76f66d25ef74d.zip
forbidden-apis-fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885022 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi')
-rw-r--r--src/testcases/org/apache/poi/ss/formula/functions/TestDateValue.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/ss/formula/functions/TestDateValue.java b/src/testcases/org/apache/poi/ss/formula/functions/TestDateValue.java
index 055e997650..b6b2368be5 100644
--- a/src/testcases/org/apache/poi/ss/formula/functions/TestDateValue.java
+++ b/src/testcases/org/apache/poi/ss/formula/functions/TestDateValue.java
@@ -58,7 +58,7 @@ public final class TestDateValue {
try {
int days1900 = (int)ChronoUnit.DAYS.between(
LocalDate.of(1899, Month.DECEMBER, 31),
- LocalDate.of(Year.now().getValue(), Month.FEBRUARY, 1)
+ LocalDate.of(Year.now(LocaleUtil.getUserTimeZone().toZoneId()).getValue(), Month.FEBRUARY, 1)
)+1;
confirmDateValue(new StringEval("2020-02-01"), 43862);
confirmDateValue(new StringEval("01-02-2020"), 43862);