From 6658a0b6645cbb835f3a430f3dc76f66d25ef74d Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Fri, 1 Jan 2021 23:26:25 +0000 Subject: [PATCH] forbidden-apis-fix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885022 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/formula/functions/TestDateValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);