问题
I am already storing UTC time in DateTime objects.
When I send this across using Json() serializer these dates are again converted to UTC. I don't want this to happen.
Please help.
回答1:
Check the Kind
property of your DateTime
objects, maybe they are not marked as UTC then they get converted again.
来源:https://stackoverflow.com/questions/10138562/json-in-mvc-converts-datetime-to-utc-automatically