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

if dateutil is available, use it to parse datetimes #343

Merged
merged 2 commits into from
Jun 4, 2013

Conversation

paulswartz
Copy link
Contributor

In particular, this picks up the default datetime.isoformat() output, with a "T" as the separator.

In particular, this picks up the default `datetime.isoformat()` output, with
a "T" as the separator.
@rozza
Copy link
Contributor

rozza commented Jun 4, 2013

Thanks for the patch @paulswartz it looks good, I needs docs updating and error handling

rozza added a commit that referenced this pull request Jun 4, 2013
if `dateutil` is available, use it to parse datetimes
@rozza rozza merged commit f1b97fb into MongoEngine:master Jun 4, 2013
@rozza
Copy link
Contributor

rozza commented Jun 4, 2013

Added some extra handling - you can now assign an isoformat as well and it will validate and convert on save.

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