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

formula
xuri 4 years ago
parent d42834f3a8
commit f5a20fa03f
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7

@ -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))

@ -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)",

Loading…
Cancel
Save