Skip to content

fix json time zone - #464

Open
reenjii wants to merge 1 commit into
go-mgo:v2from
reenjii:fix-json-timezone
Open

fix json time zone#464
reenjii wants to merge 1 commit into
go-mgo:v2from
reenjii:fix-json-timezone

Conversation

@reenjii

@reenjii reenjii commented Jul 4, 2017

Copy link
Copy Markdown

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