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

fix json time zone #464

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open

fix json time zone #464

wants to merge 1 commit into from

Conversation

reenjii
Copy link

@reenjii reenjii commented Jul 4, 2017

Time zone in time format for JSON (un)marshaling is wrong.
All dates used to be parsed in UTC.
See numeric time zone offsets in: https://golang.org/pkg/time/#pkg-constants

I also improved error management when parsing dates so that when an invalid date is encountered, the actual parsing error is returned.

Implemented tests for dates with time zone in test set.

Time zone in time format for JSON (un)marshaling is wrong.
All dates used to be parsed in UTC.
See numeric time zone offsets in: https://golang.org/pkg/time/#pkg-constants
@fmpwizard
Copy link
Contributor

If you close and reopen the PR, travis will rerun this build and thanks to #462 , your PR should pass all tests on all mongodb versions

@reenjii reenjii closed this Jul 21, 2017
@reenjii reenjii reopened this Jul 21, 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.

2 participants