Skip to content

Conversation

@paulbdavis
Copy link
Contributor

Check for {type: 'date'} and {type: Date} in the attr options when inserting/updating and parse it as a Date object if the value is a string.

This counter's the new recursive toJSON call in modella, causing mongo to store Date values as strings rather than ISODate objects

only if the `options.type` setting is either `'date'` or `Date`
@coveralls
Copy link

Coverage Status

Coverage decreased (-3.62%) when pulling 5163944 on paulbdavis:date-checker into 207f556 on modella:master.

@paulbdavis paulbdavis closed this Sep 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants