Skip to content

Commit

Permalink
feat: allow overwriting time.Time parsing from extID 13 (for NodeJS D…
Browse files Browse the repository at this point in the history
…ate)
  • Loading branch information
tehsphinx committed Oct 22, 2021
1 parent e694773 commit 9a6b73b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion time.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 9a6b73b

Please sign in to comment.