FIx zero padding on years.

This commit is contained in:
John Beisley 2021-09-05 15:20:36 +01:00 committed by Huin
parent 32bfaa2f8e
commit 8223a6b37c

View File

@ -736,7 +736,7 @@ func (d *Date) clear() {
}
func (d *Date) marshalText(b []byte) []byte {
b = appendInt(b, int64(d.Year), 2)
b = appendInt(b, int64(d.Year), 4)
b = append(b, '-')
b = appendInt(b, int64(d.Month), 2)
b = append(b, '-')