如果要检查这个类 Sitecore.Shell.Applications.Security.EditUser.EditUserPage
你会发现有关lastLogindate
,creatiodate
代码等:
MembershipUser user2 = Membership.GetUser(user.Name);
if (user2 != null)
{
CultureInfo culture = User.Current.Profile.Culture;
this.LastLoginDate.Text = FormatDate(user2.LastLoginDate, culture);
this.CreationDate.Text = FormatDate(user2.CreationDate, culture);
this.LastActivityDate.Text = FormatDate(user2.LastActivityDate, culture);
this.LastPasswordChangedDate.Text = FormatDate(user2.LastPasswordChangedDate, culture);
this.LastLockoutDate.Text = FormatDate(user2.LastLockoutDate, culture);
}
貌似会员数据库使用UTC时间,你的时间之间的差。 请检查这article。
感谢您的回复。但是,显示的时间戳总是只是当前的日期时间,而不是不同的日期时间。因此,如果我关闭用户管理器并再次打开,它会再次更新以显示当前日期时间!这是我没有得到的。 – Shirlz
您可以检查是否有人修改此文件:\ Website \ sitecore \ shell \ Applications \ Security \ EditUser \ EditUser.xaml.xml –
感谢您尝试提供帮助。看起来像常规Sitecore用户的时间戳显示正确。只有那些使用域控制器的Sitecore用户才会遇到此问题。所以这可能是因为他们可能在后台不断调查,Sitecore不适合处理这个问题。 – Shirlz