修复ExcelReader读取时间变成12小时形式问题

This commit is contained in:
Looly
2022-09-24 01:04:16 +08:00
parent f51df24970
commit 9dfac34f69
4 changed files with 28 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
package cn.hutool.poi;
import cn.hutool.poi.excel.ExcelReader;
import cn.hutool.poi.excel.ExcelUtil;
import org.junit.Assert;
import org.junit.Test;
public class IssueI5Q1TWTest {
@Test
public void readTest() {
final ExcelReader reader = ExcelUtil.getReader("I5Q1TW.xlsx");
// 自定义时间格式1
Assert.assertEquals("18:56", reader.readCellValue(0, 0).toString());
// 自定义时间格式2
Assert.assertEquals("18:56", reader.readCellValue(1, 0).toString());
}
}

Binary file not shown.