Skip to content

Respect JSON Dates from Elasticsearch when passing to SourceSerializer #3278

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

Merged
merged 2 commits into from
Jun 7, 2018

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Jun 7, 2018

This commit fixes an issue where the default Json.NET implementation when
creating a JToken from a reader, will convert DateTimeOffset to local time with
local offset. See JamesNK/Newtonsoft.Json#862. This
is unwanted when passing off to the SourceSerializer.

Closes #3164

This commit fixes an issue where the default Json.NET implementation when
creating a JToken from a reader, will convert DateTimeOffset to local time with
local offset. See JamesNK/Newtonsoft.Json#862. This
is unwanted when passing off to the SourceSerializer.

Closes #3164
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dates strike again LGTM

Rider Refactoring removed this directive!
@russcam russcam merged commit ff2a867 into master Jun 7, 2018
russcam added a commit that referenced this pull request Jun 7, 2018
#3278)

* Respect JSON Dates from Elasticsearch when passing to SourceSerializer

This commit fixes an issue where the default Json.NET implementation when
creating a JToken from a reader, will convert DateTimeOffset to local time with
local offset. See JamesNK/Newtonsoft.Json#862. This
is unwanted when passing off to the SourceSerializer.

Closes #3164

(cherry picked from commit ff2a867)
@russcam russcam deleted the fix/3164 branch October 18, 2018 09:47
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.

ElasticClient.Search is not respecting SourceSerializer on results
3 participants