From: Andreas Beeker Date: Fri, 1 Jan 2021 23:26:25 +0000 (+0000) Subject: forbidden-apis-fix X-Git-Tag: REL_5_0_0~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6658a0b6645cbb835f3a430f3dc76f66d25ef74d;p=poi.git forbidden-apis-fix git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885022 13f79535-47bb-0310-9956-ffa450edef68 --- 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);