Why can DateTime.MinValue not be serialized in timezones ahead of UTC?

后端 未结 7 997
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 02:09

I am experiencing issues with a WCF REST service. The wire object that I try to return has certain properties not set, resulting in DateTime.MinValue for properties of type

7条回答
  •  温柔的废话
    2020-12-24 02:37

    If your time zone is GMT+1, then the UTC value of DateTime.MinValue in your time zone is going to be an hour less than DateTime.MinValue.

提交回复
热议问题