Last active
December 25, 2019 17:44
-
-
Save mirontoli/1bdd303a31feca45b6a0583a731a64ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)