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? :)
精彩评论