How does one deal with multiple TimeZones in applications that store dates and times?

后端 未结 6 1612
轻奢々
轻奢々 2020-12-18 08:50

I realize this is a bit subjective, but I\'m hoping to pick everyones brain here on how they deal with multiple timezones? There are a variety of similar questions here and

6条回答
  •  忘掉有多难
    2020-12-18 09:20

    I think the new best practice with sql server 2008 is to always use the datetimeoffset datatype. normalizing dates to UTC is also good practices; but not always feasible or desirable.

    See this blog post for more thoughts: http://blogs.msdn.com/b/bartd/archive/2009/03/31/the-death-of-datetime.aspx

提交回复
热议问题