如果要檢查這個類 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