validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

ISO8601 - UTC time offset

Open nihal-oslash opened this issue 4 years ago • 2 comments

Describe the bug According to ISO8601, the time offsets are from UTC. UTC offsets can range from -12:00 to +14:00

Based on the spec, the validator isISO8601 should return false for any timezone offset beyond that range. However, the validator is returning true for these values.

Examples Screenshot 2021-12-13 at 12 57 49 PM

Additional context Validator.js version: v13.7.0 Node.js version: v14.18.1 OS platform: macOS

nihal-oslash avatar Dec 13 '21 07:12 nihal-oslash

Hi, I would like to work in this Issue .

ejgonzalez17 avatar Dec 16 '21 22:12 ejgonzalez17

@ejgonzalez17 go ahead

rubiin avatar Jul 28 '22 17:07 rubiin