2015-10-05 69 views
0

我在使用Sitecore.NET 6.6.0(修订版140410)的Sitecore站点上出现了一个奇怪的问题,它只发生在生产服务器上!Sitecore用户管理器显示错误的时间戳

当您打开安全 - >用户管理,选择一个用户,然后单击编辑,信息选项卡显示所有时间戳(除了创建)作为当前日期时间!见下面的截图:

User manager time-stamp issue

然而,这其中的工作原理相同的使用Sitecore的版本,我们的开发服务器上的罚款。我必须添加这是为了一个内部网站&,因此对生产有访问限制。

任何想法可能会出错?

谢谢!

回答

2

如果要检查这个类 Sitecore.Shell.Applications.Security.EditUser.EditUserPage你会发现有关lastLogindatecreatiodate代码等:

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

+0

感谢您的回复。但是,显示的时间戳总是只是当前的日期时间,而不是不同的日期时间。因此,如果我关闭用户管理器并再次打开,它会再次更新以显示当前日期时间!这是我没有得到的。 – Shirlz

+0

您可以检查是否有人修改此文件:\ Website \ sitecore \ shell \ Applications \ Security \ EditUser \ EditUser.xaml.xml –

+0

感谢您尝试提供帮助。看起来像常规Sitecore用户的时间戳显示正确。只有那些使用域控制器的Sitecore用户才会遇到此问题。所以这可能是因为他们可能在后台不断调查,Sitecore不适合处理这个问题。 – Shirlz