fastJSON icon indicating copy to clipboard operation
fastJSON copied to clipboard

UTC dates become Local when parsed

Open bruce965 opened this issue 10 years ago • 1 comments

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! :)

bruce965 avatar Jan 13 '15 14:01 bruce965

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

xmedeko avatar Apr 26 '19 13:04 xmedeko