I have a Sitecore 8.1-3 instance. I am trying to get the Datetime that the user's password was last changed. I am using this code:
var membershipUser = Membership.GetUser(myUserName); var elapsedTimeSinceLastPasswordChange = DateTime.Now - membershipUser.LastPasswordChangedDate;
I am finding that
membershipUser.LastPasswordChangedDate is always 5 hours ahead of the time on my machine. I am running all of this on my local computer. I am in the US Eastern time zone. The time on my PC is correct. And I have the following setting in my Sitecore.config file:
<setting name="ServerTimeZone" value="Eastern Standard Time"/>
Am I missing something?