Fixed #823, 12/24 hours time format parsing error

This commit is contained in:
xuri 2021-04-20 15:20:46 +00:00
parent d42834f3a8
commit f5a20fa03f
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ func TestSetCellValues(t *testing.T) {
v, err := f.GetCellValue("Sheet1", "A1")
assert.NoError(t, err)
assert.Equal(t, v, "12/31/10 12:00")
assert.Equal(t, v, "12/31/10 00:00")
// test date value lower than min date supported by Excel
err = f.SetCellValue("Sheet1", "A1", time.Date(1600, time.December, 31, 0, 0, 0, 0, time.UTC))

View File

@ -48,7 +48,7 @@ var builtInNumFmt = map[int]string{
19: "h:mm:ss am/pm",
20: "h:mm",
21: "h:mm:ss",
22: "m/d/yy h:mm",
22: "m/d/yy hh:mm",
37: "#,##0 ;(#,##0)",
38: "#,##0 ;[red](#,##0)",
39: "#,##0.00;(#,##0.00)",