Skip to content

Commit 3fb1223

Browse files
committed
fixed bug in date formatting
1 parent 1215cbf commit 3fb1223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

format.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func abs(i int) int {
2020
func date(t time.Time) []byte {
2121
dst := make([]byte, len("(D:YYYYMMDDHHmmSSOHH'mm)"))
2222
n := copy(dst, []byte("(D:"))
23-
dst = itobuf(t.Year(), dst[n:])
23+
dst = itobuf(t.Year(), dst[n:n])
2424
n += 4
2525

2626
// to be used for 0-padded digits

0 commit comments

Comments
 (0)