Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

datetime validation errors return wrong type name #97

Open
jstoiko opened this issue Mar 14, 2017 · 0 comments
Open

datetime validation errors return wrong type name #97

jstoiko opened this issue Mar 14, 2017 · 0 comments

Comments

@jstoiko
Copy link
Contributor

jstoiko commented Mar 14, 2017

given the type:

date: {
  type: 'datetime'
}

and the value:

date: 'Sun, 28 Feb 2016 16:41:41 GMT'

error.getSource().facetName() returns should be datetime-only. I would expect it to return should be datetime

same thing goes with:

date: {
  type: 'datetime',
  format: 'rfc2616'
}

and the value:

date: '2016-02-28T16:41:41.090Z'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant