Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经将 UTC 时间存储在 DateTime 对象中。
当我使用 Json() 序列化程序发送它时,这些日期再次转换为 UTC。我不希望这种情况发生。
请帮忙。
检查Kind您的对象的属性DateTime,也许它们没有被标记为 UTC,然后它们再次被转换。
Kind
DateTime