Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Connect-PnPOnline https://takana16.sharepoint.com/sites/001
$web = Get-PnPWeb
$ctx = Get-PnPContext
$ctx.Load($web.RegionalSettings)
$ctx.ExecuteQuery()
$tz = $web.RegionalSettings.TimeZones.GetById(4) # Stockholm, UTC+1
$web.RegionalSettings.Timezone = $tz
$web.RegionalSettings.LocaleId = 1053 # Swedish
$web.RegionalSettings.FirstDayOfWeek = 1 # Monday
$web.RegionalSettings.Time24 = $true
$web.Update()
$ctx.ExecuteQuery()
@baryslav

This comment has been minimized.

Copy link

@baryslav baryslav commented Dec 25, 2019

Thank you, it helped me very.
Here is link to RegionalSettings TimeZones ID
https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-csom/jj171282(v%3Doffice.15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.