From 8223a6b37c6c14bfb5cbcc7468c481a4f1298958 Mon Sep 17 00:00:00 2001 From: John Beisley Date: Sun, 5 Sep 2021 15:20:36 +0100 Subject: [PATCH] FIx zero padding on years. --- v2/soap/types/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/soap/types/types.go b/v2/soap/types/types.go index e3d70ee..853dbc8 100644 --- a/v2/soap/types/types.go +++ b/v2/soap/types/types.go @@ -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, '-')