Skip to content

Commit 2ca50c0

Browse files
committed
The specs say T and Z is case insensitive for date-time.
Closes: #194
1 parent 43dad6a commit 2ca50c0

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

tests/draft3/optional/format.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
"data": "06/19/1963 08:30:06 PST",
3030
"valid": false
3131
},
32+
{
33+
"description": "case-insensitive T and Z",
34+
"data": "1963-06-19t08:30:06.283185z",
35+
"valid": true
36+
},
3237
{
3338
"description": "only RFC3339 not all of ISO 8601 are valid",
3439
"data": "2013-350T01:01:01",

tests/draft4/optional/format.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"data": "06/19/1963 08:30:06 PST",
1414
"valid": false
1515
},
16+
{
17+
"description": "case-insensitive T and Z",
18+
"data": "1963-06-19t08:30:06.283185z",
19+
"valid": true
20+
},
1621
{
1722
"description": "only RFC3339 not all of ISO 8601 are valid",
1823
"data": "2013-350T01:01:01",

tests/draft6/optional/format.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"data": "06/19/1963 08:30:06 PST",
1414
"valid": false
1515
},
16+
{
17+
"description": "case-insensitive T and Z",
18+
"data": "1963-06-19t08:30:06.283185z",
19+
"valid": true
20+
},
1621
{
1722
"description": "only RFC3339 not all of ISO 8601 are valid",
1823
"data": "2013-350T01:01:01",

tests/draft7/optional/format/date-time.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"data": "06/19/1963 08:30:06 PST",
1414
"valid": false
1515
},
16+
{
17+
"description": "case-insensitive T and Z",
18+
"data": "1963-06-19t08:30:06.283185z",
19+
"valid": true
20+
},
1621
{
1722
"description": "only RFC3339 not all of ISO 8601 are valid",
1823
"data": "2013-350T01:01:01",

0 commit comments

Comments
 (0)