Programmatically setting a user's timezone ("My Regional Settings")
I'm working on a large, global extranet. Since the site features a lot of calendar data, it's crucial that we have all of our users set in the correct timezone. Two questions:
1. Does sharepoint automatically grab timezone information from active directory?
2. Can I programmatically set a user's timezone (my app is dual-zoned with a large percentage of users not in active directory but rather in SQL)? If so, if someone could point me to the proper namespace and maybe even provide a code snippet it would be very much appreciated.
Thanks!
Allan
UPDATE: I've done some more research and have foundSPUser.RegionalSettingsbut, from what I can tell,RegionalSettingshas no properties fot time zone.
ANOTHER UPDATE: Well, I was able to figure out that you CAN in fact programatically set a user's timesone. And yes, the way you do it is usingSPUser.RegionalSettings. It turns out that the SDK Documentation (link) is incorrect and there is in fact a TimeZone property in SPUser.RegionalSettings. I have alerted my contacts at Microsoft to the error.
I have also done some investigation re the first question and, from what I can tell, timezone does NOT appear to come from active directory although perhaps someone else can clarify.

