date-time doesn't support fractions of a second
Closed this issue · 1 comments
CaitieM20 commented
The ISO Specification states that fractions of a second can be specified http://www.w3.org/TR/NOTE-datetime
Your ISO-format validator doesn't support this. Moreover in javascript
var date = new Date()
var isoString = date.toISOString()
creates a string with fractions of a second 2014-07-16T23:57:49.456Z, so using the validator with Javascript date evaluates to false
CaitieM20 commented
nvm I see that to get ISO Format parsing you want to use 'date-time'
the documentation on npm is just confusing the example uses the 'date' schema and the comments specify that its an ISO Date.