I want to grab the timezone value from User Profile but seem like i got the an object return from API instead, Snippet code below will help you to get the actual value.
SPServiceContext context = SPServiceContext.GetContext(SPContext.Current.Site);
UserProfileManager uprofileManager = new UserProfileManager(context);
if (uprofileManager.UserExists(sUserName))
{
UserProfile up = uprofileManager.GetUserProfile(sUserName);
SPTimeZone spTimeZone = up[PropertyConstants.TimeZone].Value as SPTimeZone;
lblTimeZone.Text = spTimeZone.Description;
}
Incoming search terms:
- sptimezone (5)
- get timezone sharepoint (2)
- example C# sharepoint 2010 SPTimeZone = (1)
- sp 2010 get current timezone (1)
- sptimezon (1)
- sptimezone get by id (1)
- sptimezone ids (1)
- sptimezone to timezone (1)
- timezone blog post sharepoint 2010 (1)
- timezone object to sptimezone (1)


