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

Avoid using JObject.Parse because it doesn't preserve timezones #808

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

clement911
Copy link
Collaborator

Avoid using JObject.Parse because it doesn't preserve timezone on datetimeoffset (it always converts to the local timezone) See https://stackoverflow.com/questions/46829888/how-parse-string-to-jobject-ignoring-time-zone

@clement911 clement911 merged commit 9c1cf57 into nozzlegear:master Nov 15, 2022
@clement911
Copy link
Collaborator Author

@nozzlegear are you able to approve this one?

@nozzlegear
Copy link
Owner

nozzlegear commented Nov 15, 2022 via email

@clement911
Copy link
Collaborator Author

@nozzlegear thank you very much.
That bug definitely caught me by surprise!

@clement911 clement911 deleted the timezone-parsing-fix branch November 27, 2022 23:14
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