Browse Source

# 4.0.3

* 兼容部分日期格式读取异常的问题
bugfix
Jiaju Zhuang 2 months ago
parent
commit
4826273f09
  1. 3
      easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java
  2. BIN
      easyexcel-test/src/test/resources/dataformat/dataformatv2.xlsx

3
easyexcel-test/src/test/java/com/alibaba/easyexcel/test/core/dataformat/DateFormatTest.java

@ -56,6 +56,9 @@ public class DateFormatTest {
Assertions.assertEquals("2023-1-01 00:00:00", dataMap.get(1).get(0)); Assertions.assertEquals("2023-1-01 00:00:00", dataMap.get(1).get(0));
Assertions.assertEquals("2023-1-01 00:00:00", dataMap.get(2).get(0)); Assertions.assertEquals("2023-1-01 00:00:00", dataMap.get(2).get(0));
Assertions.assertEquals("2023-1-01 00:00:01", dataMap.get(3).get(0)); Assertions.assertEquals("2023-1-01 00:00:01", dataMap.get(3).get(0));
Assertions.assertEquals("2023-1-01 00:00:00", dataMap.get(4).get(0));
Assertions.assertEquals("2023-1-01 00:00:00", dataMap.get(5).get(0));
Assertions.assertEquals("2023-1-01 00:00:01", dataMap.get(6).get(0));
} }
private void readCn(File file) { private void readCn(File file) {

BIN
easyexcel-test/src/test/resources/dataformat/dataformatv2.xlsx

Binary file not shown.
Loading…
Cancel
Save