Decoder: check timezones start with +,-,z,Z (#688)

Also simplifies local time seconds scanning.

Fixes #686
This commit is contained in:
Thomas Pelletier
2021-11-30 13:01:15 -05:00
committed by GitHub
parent ede6445608
commit bbaae540ce
3 changed files with 21 additions and 14 deletions
-1
View File
@@ -862,7 +862,6 @@ func (p *parser) parseIntOrFloatOrDateTime(b []byte) (ast.Reference, []byte, err
return p.scanIntOrFloat(b)
}
//nolint:gomnd
if len(b) < 3 {
return p.scanIntOrFloat(b)
}