After rebooting the Virtual Machine, the time zone resets back to UTC

Vinoth Kaliaperumal 386 Reputation points
2023-04-18T09:07:34.1933333+00:00

Hi Team, After rebooting the azure VM, the time zone resets back to UTC. I want the time zone to be fixed. Have manually set to different time zone but didn't work, after reboot the time zone back to UTC. Please let me know if anything can be done. Thanks.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,585 questions
{count} votes

Accepted answer
  1. Prrudram-MSFT 23,211 Reputation points
    2023-04-18T10:26:53.9533333+00:00

    Hello @Vinoth Kaliaperumal

    It sounds like the time zone setting on your Azure VM is not persisting after a reboot. To fix this issue, you can try the following steps.

    1. Connect to your Azure VM using Remote Desktop or SSH.
    2. Open the Command Prompt or Terminal window.
    3. Type the following command to set the time zone
      tzutil.exe /s "Central Standard Time" Note: Replace "Central Standard Time" with the name of your desired time zone.
    4. Verify that the time zone has been set correctly by typing the following command:
      tzutil.exe /g
    5. This command will display the current time zone setting. Restart the VM to see if the time zone setting persists after a reboot.

    If the time zone setting still does not persist after a reboot, you can try setting the time zone in the registry. Here are the steps:

    1. Open the Registry Editor by typing "regedit" in the Start menu search bar.
    2. Navigate to the following registry key:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
    3. Create a new DWORD value named "RealTimeIsUniversal" and set its value to 1.
    4. Create a new string value named "TimeZoneKeyName" and set its value to the name of your desired time zone. For example, "Central Standard Time".
    5. Restart the VM to see if the time zone setting persists after a reboot.

    Please don’t forget to Accept Answer and hit Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members for remediation for similar issues.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful