开发者

Asp.net profile manager ignores daylight saving

开发者 https://www.devze.com 2023-02-02 23:55 出处:网络
I have encountered a weird problem with asp.net profiles which is about the value in LastUpdatedDate column in aspnet_Porfile table of asp.net profiles and membership tables.

I have encountered a weird problem with asp.net profiles which is about the value in LastUpdatedDate column in aspnet_Porfile table of asp.net profiles and membership tables.

I am in a country with开发者_如何转开发 currently one hour daylight saving. The current time of my local machine is one hour behind what gets saved in the above column and I am totally working locally so there is no database or web server datetime coming through.

Have someone else experienced the same issue with asp.net profiles? It seems it ignores daylight saving settings.


Most ASP.NET 'extras' use UTC which is not affected by DST.

Datetime.ToLocalTime should do the conversion depending on how you create the Datetime you get from the DB

0

精彩评论

暂无评论...
验证码 换一张
取 消