C# UTC DateTime query in WCF/.NET

后端 未结 2 1450
一生所求
一生所求 2021-01-21 03:41

This is a very simple, (hopefully) question. I am new to working with DateTime conversion in .NET.

I have a WCF service which has a DateTime property - call it BookingDa

2条回答
  •  灰色年华
    2021-01-21 04:09

    If your server's timezone is on Lisbon/London/Dublin time, it is not UTC. You will either want to change the time zone of your server, or express the date/time value in UTC form when you update it in your database.

提交回复
热议问题