Skip to content

Use codec options in aggregate command#300

Closed
hedgepigdaniel wants to merge 1 commit into
mongodb:v2.9from
hedgepigdaniel:v2.9
Closed

Use codec options in aggregate command#300
hedgepigdaniel wants to merge 1 commit into
mongodb:v2.9from
hedgepigdaniel:v2.9

Conversation

@hedgepigdaniel

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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