开发者

Asp.Net Membership System Last Activity Date in the future

开发者 https://www.devze.com 2023-04-11 05:43 出处:网络
I\'m using the ASP.Net Membership system but I\'m having an issue with the LastActivityDate fo开发者_开发问答r the users in the database. For some users, their last activity date is in the future... D

I'm using the ASP.Net Membership system but I'm having an issue with the LastActivityDate fo开发者_开发问答r the users in the database. For some users, their last activity date is in the future... Definitely not supposed to happen. Any thoughts?


Looking at the source code for the Sql Membership Provider, it uses UTC time:

cmd.Parameters.Add(CreateInputParam("@CurrentTimeUtc", SqlDbType.DateTime, DateTime.UtcNow));

I would check the time difference between DateTime.UtcNow and your local time and see if that explains it.


Check the date/time of the server?


Maybe Timezone/DST-related problem? How much in the future your users seem to be? :)

0

精彩评论

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

关注公众号