From 9a6b73b3588fd962d568715f4375e24b089f7066 Mon Sep 17 00:00:00 2001 From: Gabriel Nelle Date: Fri, 22 Oct 2021 12:14:59 +0200 Subject: [PATCH] feat: allow overwriting time.Time parsing from extID 13 (for NodeJS Date) --- time.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/time.go b/time.go index 44566ec..37cc432 100644 --- a/time.go +++ b/time.go @@ -103,7 +103,8 @@ func (d *Decoder) DecodeTime() (time.Time, error) { return time.Time{}, err } - if extID != timeExtID { + // NodeJS seems to use extID 13. + if extID != timeExtID && extID != 13 { return time.Time{}, fmt.Errorf("msgpack: invalid time ext id=%d", extID) }