When casting string values as dateTime, parse tolerantly. #38

Merged
merged 1 commit into from Mar 3, 2015

Conversation

Projects
None yet
2 participants
@jmandel
Contributor

jmandel commented Jul 11, 2012

Fixes antoniogarrote/rdfstore-js#37

  1. Don't require strict ISO8601 parsing for literal dates (e.g. "2000-01-05" should be allowed in > comparisons, even though it doesn't have precision down to the second)
  2. Require tolerant ISO860 parsing to match from the beginning of a string
  3. Added a test case
When casting string values as dateTime, parse tolerantly.
Added test case for date cast

Removed strict ISO parsing (not needed by tests)

@antoniogarrote antoniogarrote merged commit df70f0d into antoniogarrote:master Mar 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment