“Regional Settings” and “Central Administration”
Regional Settings for sites can be set in one of two ways:
1. Site Actions + Site Settings + Modify All Site Settings and then select the “Regional Settings” link under “Site Administration”. This allows default regional settings to be applied to all users.
2. An individual user can select the “Welcome” menu, and then “My Settings”:
The User Information form has a “My Regional Settings” link that can be used to change the regional settings to be used when that user visits a site:
So what about changing regional settings for “Central Administration”? Well, you might be suprised that the “Regional Settings” link is missing from the “Site Settings” page, so the regional settings cannot be changed that way.
All right, what about changing the regional settings for the logged on user using “My Settings”? Well, it turns out that the “My Regional Settings” option is missing from the form when accessed through “Central Administration”!
It seems that applying regional settings to “Central Administration” is not supported through the user interface. You can, however, change the locale for “Central Administration” through code:
using (SPSite siteCollection = new SPSite
SPWeb rootWebSite = siteCollection.RootWeb;
SPWeb webSite = siteCollection.OpenWeb(rootWebSite.ID);
webSite.Locale = CultureInfo.CreateSpecificCulture(“en-GB”);
This code opens the site collection for “Central Administration” (which on this server has the port number 9000 – change this to your own port number). It then finds and opens the root web, creates a local for UK English, updates the web site and disposes the objects. Remember to add a reference to sharepoint.dll and add the following using statements:
Note the default setting can be applied by using “en-US” for the locale.
The following diagram shows that the date ordering for the timer job status form is now in dd/mm/yyyy format:
I’m not entirely comfortable in changing the regional settings in this way and would not recommend this change on a production server without extensive testing. While it works I feel that the option to change regional settings in “Central Administration” must have been left out by Microsoft for a good reason – perhaps it breaks something.