1

Apparently each SPWeb can have it's own list of TimeZones (assuming that is why there is a TimeZones property on each SPWeb's RegionalSettings).

Why could/would a web/site within a site collection/farm have different collection of TimeZones (i know why a different web/site would have a different TimeZone selected, I am asking about the "collection" of time zones - i.e. the list of values that populate the TimeZone dropdown in the /_layouts/regionalsetng.aspx page)? Wouldn't the possible list of selectable values be the same for each web across a farm?

1 Answer 1

0

The Timezones property of the SPWeb.RegionalSettings setting is the same across the entire farm:

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spregionalsettings.timezones.aspx

Gets the collection of time zones used in a server farm.

It is, therefore, the same for all Webs. I suspect the confusion arises as the SPWeb.RegionalSettings property just gets/sets and SPRegionalSettings object. Considered from that point of view, it is reasonable that the TimeZones collection is also available from the SPRegionalSettings class - though I'm suprised it isn't static.

It does not appear to be related to the operating system, though it's hard to tell; Reflector can't decompile the COM layer.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.