Commit 7205083
committed
Check for invalid hour and leap second
Exposed by: json-schema-org/JSON-Schema-Test-Suite#481
Ruby incorrectly allows `24` as the hour in an RFC3339 timestamp.
It also does not handle leap seconds very well:
```
-> Time.parse("23:59:60Z")
=> 2021-10-18 00:00:00 UTC
```
They should only be allowed at 23:59 UTC.1 parent 88e4a9d commit 7205083
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
0 commit comments