Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change time zone in Azure Virtual Machine?

How to change the time zone from UTC to Arabian Standard Time in Azure virtual machine running the windows server?

like image 422
Mohammed Avatar asked Mar 15 '18 11:03

Mohammed


1 Answers

I'm afraid that you would not be able to change the time Zone actually. Even if you changed it onece, the time zone would revert to UTC after restarting.

Also, changing the time zone for Azure IaaS VM is not recommended.

While it may be very tempting to change the server time on the Azure Virtual Machines using a startup task, it is not recommended, you should rather use methods like TimeZoneInfo.ConvertTimeFromUTCTime in your code.

You can also check this blog for more details about the TimeZone on Azure.

Hope this helps!

like image 60
Wayne Yang Avatar answered Sep 20 '22 05:09

Wayne Yang