0
votes

I have been having a weird issue on a Sitecore site using Sitecore.NET 6.6.0 (rev. 140410) and it happens only on the production server!

When you open Security -> User Manager, select a user and then click Edit, the Information tab shows all time-stamps (except created) as current date time! See screenshot below:

User manager time-stamp issue

This however works fine on our development server which uses same Sitecore version. I must add this is for an intranet site & hence does have access restrictions on production.

Any ideas what might be going wrong?

Thank you!

1

1 Answers

2
votes

If you are checking this class Sitecore.Shell.Applications.Security.EditUser.EditUserPage you will find the code related to lastLogindate, creatiodate, etc:

 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);
 }

Looks like Membership database is using UTC time that the difference between your time. Please check this article.