So you have a UK tenant and want to default from US Locale; unfortunately, there isn’t a default option. There is the default time zone, under Site Creation in Modern administration centre, but this does not include Locale. Those not in the US, you may find that your OneDrive and SharePoint sites are created with the US Locale, and thus you are subject to US Date Time formats. For UK tenants at least, you may want to find a way to automate or change this setting at scale. I could not find any way to set a tenant default – if you do please ping in the comments, but there are options for automating this with a variety of approaches.
Good news is it’s relatively easy to change the setting, you can in the user interface, PowerShell, Site Scripts. The bad news is that once you have blanket set the tenant, this is short-lived as new sites are created, this will need to be re-applied.
Setting the Locale using the User Interface
Under My Account (microsoft.com) settings, according to Microsoft support pages, this setting is a reference point for the preference for many Office 365 components. In the tenant, I use, this does not appear to affect the mentioned components. Understandably, the user interface does show “Preview” so it may not yet be fully rolled out to my tenant, bug with the feature or the support article does not align to the behavior. It is worth setting this anyway, if Microsoft fixes this issue then, it should, in theory, start to apply to the interface for you.
Office 365 Profile
In Office 365, you can navigate to your Office 365 profile which takes you to Delve profile screen with the option to update your profile.
From my testing on the test environment, the date formats do update for the user preference, where the DateTime columns are set to standard mode, friendly names appear to be unaffected by this setting and show as “Month Day” format. Excel online doesn’t refer to these settings either and still uses the site settings as the default regional settings – you have the option to change this within the Excel file under File > Options > Regional Format Settings to set this to the region you prefer.
This is set on the root site collection under Site Settings > Regional Settings > Locale. Setting the setting here will update the SharePoint landing page.
You may think that this may not be necessary to fix this in OneDrive, there is one account per user and potentially could be seen as a minor thing. Until you use the Office Web Apps, such as Excel Online, which uses the site locale settings to use for default date formats (this also applies to files in SharePoint). You may think well having the desktop apps this is all ok, unless you use F3 or E1 licenses that do not include desktop apps as part of the license, only the online versions.
Go to your OneDrive Site, Cog > OneDrive Settings > More Settings > Regional Settings or follow this small video below:
After applying the setting, the Office apps will use the UK Locale setting, I had noticed that after setting this, it didn’t update with the UK date in the list view formatting.
Setting the SharePoint site is relatively straightforward, see video below, or go to Cog > Site Information > Site Settings > Regional Settings > Locale to change the value
After this is applied, the site loads as expected. Ok, this is one site done, but what if you have thousands of sites, OneDrive accounts and what happens when new sites get created, how can we keep on top of this?
How can this be set automatically?
Unrealizing for quite some time, most of my scripts include the setting for locale one way or another, and I thought id share some of these to help you on your way to automate setting sites in bulk and use some automation options.
Site Designs is a lightweight provisioning solution that allows you to apply configuration options consistently to the site as they get created or on-demand. You can set the default site script to run when each site is created; however, not all site types are covered:
|Can apply site designs||Cannot apply site designs|
|Communication Sites (WebTemplate: 68)||Teams Private Channel Sites|
|Modern Team Sites (WebTemplate: 1)||Classic SharePoint Sites|
|Microsoft 365 Group Team Sites (WebTemplate: 64)|
Refer to this guidance for details: Site design JSON schema | Microsoft Docs and to install the script to you tenant this guidance will show you how to apply this: Get started creating SharePoint site designs and site scripts | Microsoft Docs
PnP PowerShell (Classic)
The locale on a site can be set using PnP PowerShell Classic (might work on latest one, just haven’t tested it yet), running a few example commands:
You can bundle this up into a function or module so that you can run this in bulk against sites.
The following PnP Provisioning template can apply the settings to a site, the relevant line is “<pnp:RegionalSettings />” that contains the settings to apply to a site. See this example of how you can apply using the provisioning engine:
You use Azure Automation to apply the change to the site. If you are planning to apply this to a large number of OneDrive sites, the App-Only method of connecting to SharePoint will provide access to all the OneDrive sites. This avoids having to set yourself as an administrator on each site, apply the change and remove after or provide your information governance teams with some reassurance that the engineer does not access the OneDrive sites given they are considered personal.
Using the App-only sample, that we contributed to the PnP PowerShell Repository: PnP-PowerShell/Samples/Connect.AzureAutomation at master · pnp/PnP-PowerShell (github.com) will get you started with setting up Azure Automation.
The example runbook above applies to a single site, you could have a companion runbook that uses Get-PnPTenantSite -IncludeOneDriveSites cmdlet to get all the SharePoint and OneDrive sites with the switch, and call this runbook to apply this to all sites within your tenant. If you do run this script against all sites in your tenant, watch out for the 3 hour run limit for runbooks, refer to this for more information: Azure subscription limits and quotas – Azure Resource Manager | Microsoft Docs
There are many ways to solve this, all each has its advantages. Hopefully, this can help you determine the best approach for your scenarios. Whilst much of this article refers to UK locale, much of this can easily be changed for other locales for your region and avoid having your staff working with US date formats.
Update 7th Nov: Updated article based on feedback – Thank you! Keep posting comments if you spot anything I have missed.