If you experience that some of the users in your organization seems to be in a different time zone (this can be seen in Teams when you click on the users picture), the issue might be related to the calendar time zone. To check and fix this, you can use PowerShell. Here is the code you use:
# Enter your admin credentials
$user = "admin-user@domain.com"
$cred = get-credential -credential $user
# Connecting to EXO
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -credential $cred
# First we check that time zone of the user
Get-MailboxCalendarConfiguration -Identity "user@domain.com"
# In our case I got this as answer: tzone://Microsoft/Custom
# Then we set the time zone to the zone we want them to be in.
Set-MailboxCalendarConfiguration -Identity "user@domain.com"
-WorkingHoursTimeZone "W. Europe Standard Time"
# End of script
You might have to wait some time to see the changes, I know that the cloud is a bit slow to update so I usually check for updates the next day.
Comments