-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
DateTimeOffset loosing Timezone info #525
Comments
JToken.Parse reads dates as DateTime by default. Look at the DateParseHandling setting. |
What about the wrong timezone info? Do you not consider this an issue? Why does it modify the offset in a round-trip conversion? |
DateTime doesn't preserve the timezone. |
IMHO, I think it's a crazy default. Especially considering DateTime is such a bad fit for ISO8601. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the test that fails:
This fails both asserts. The question is WTF? Why does the parser even try to interpret the time information when it's actually a JSON string? I thought I was going crazy. The only interpretation should happen when I cast it to the DateTimeOffset.
The text was updated successfully, but these errors were encountered: