]> source.dussan.org Git - poi.git/commitdiff
forbidden-apis-fix
authorAndreas Beeker <kiwiwings@apache.org>
Fri, 1 Jan 2021 23:26:25 +0000 (23:26 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Fri, 1 Jan 2021 23:26:25 +0000 (23:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885022 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/formula/functions/TestDateValue.java

index 055e9976502ad95a4b6155856e5412e97886066c..b6b2368be568a5d31097397933fa507427c57319 100644 (file)
@@ -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);