开发者

Asp.Net Membership System Last Activity Date in the future

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜