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

Use codec options in aggregate command #300

Closed
wants to merge 1 commit into from

Conversation

hedgepigdaniel
Copy link

Before this the aggregate command ignored the codec options. this resulted in in aggregate command returning documents with naive datetime objects despite the tz_aware attribute in the collections codec options being set to True.

@behackett
Copy link
Member

Thanks for the patch. I was confused until I realized this is for PyMongo 2.9.x.

@behackett behackett self-assigned this Dec 4, 2015
@behackett
Copy link
Member

I opened https://jira.mongodb.org/browse/PYTHON-1027 to track this. We'll merge your PR for PyMongo 2.9.2.

As a workaround you can pass tz_aware=True when creating an instance of MongoClient.

@behackett
Copy link
Member

Merged to v2.9. Thanks again for the patch!

@behackett behackett closed this Dec 15, 2015
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