forbidden-apis-fix

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2021-01-01 23:26:25 +00:00
parent dc72c1a009
commit 6658a0b664
1 changed files with 1 additions and 1 deletions

View 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);