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

UTC dates become Local when parsed #11

Open
bruce965 opened this issue Jan 13, 2015 · 1 comment
Open

UTC dates become Local when parsed #11

bruce965 opened this issue Jan 13, 2015 · 1 comment

Comments

@bruce965
Copy link

DateTimeKind.Utc dates become DateTimeKind.Local when parsed, time is parsed correctly.

I guess the problem is around here.
The date should probably be constructed as either Local or Utc depending on the value of utc boolean.
The constructed data should then be converted to the other format, only if _params.UseUTCDateTime differs from utc.

Thanks! :)

@xmedeko
Copy link

xmedeko commented Apr 26, 2019

Yes, that's annoying bug, please fix it. Thanks.
I think just the ToLocalTime() should be removed.

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

No branches or pull requests

2 participants