mirror of https://github.com/apache/poi.git
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:
parent
dc72c1a009
commit
6658a0b664
|
@ -58,7 +58,7 @@ public final class TestDateValue {
|
||||||
try {
|
try {
|
||||||
int days1900 = (int)ChronoUnit.DAYS.between(
|
int days1900 = (int)ChronoUnit.DAYS.between(
|
||||||
LocalDate.of(1899, Month.DECEMBER, 31),
|
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;
|
)+1;
|
||||||
confirmDateValue(new StringEval("2020-02-01"), 43862);
|
confirmDateValue(new StringEval("2020-02-01"), 43862);
|
||||||
confirmDateValue(new StringEval("01-02-2020"), 43862);
|
confirmDateValue(new StringEval("01-02-2020"), 43862);
|
||||||
|
|
Loading…
Reference in New Issue