Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MongoDB-specific JSONConvertible conformance of Date #18

Merged
merged 3 commits into from
Jul 10, 2017
Merged

Add MongoDB-specific JSONConvertible conformance of Date #18

merged 3 commits into from
Jul 10, 2017

Conversation

thislooksfun
Copy link
Contributor

This adds an extension of Date that conforms to JSONConvertable in a way that MongoDB is able to natively read and understand. Prior to this, passing a Date object through MongoDB-StORM (for example) would result in a String representation being stored. This change allows MongoDB to store a native Date object which can then be queried and manipulated properly.

@kjessup kjessup merged commit 4308e29 into PerfectlySoft:master Jul 10, 2017
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.

None yet

2 participants