Server Gigabit Guide

Changing the Timezone on a VPS/Dedicated Server

You are here:
Estimated reading time: 1 min

Accurate timezone configuration is essential for ensuring proper time representation and synchronization across various applications and services on your server. This guide provides step-by-step instructions for changing the timezone on both Linux VPS,  Windows VPS and Dedicated Servers.

Linux

  1. Connect to your server as root via SSH.

  2. Check the current date, time, and timezone using the date command.

  3. To configure a different timezone, use the timedatectl set-timezone [new/time_zone] command.

  4. Available time zones can be found in the /usr/share/zoneinfo/ directory.Change the Timezone (timezone I)

  5. For example, to set the timezone to Europe/London, execute the command: root@server1:~# timedatectl set-timezone Europe/LondonChange the Timezone (timezone II)

  6. Verify the updated timezone using the date command.

Windows

  1. Connect to your server using RDP.

  2. Open the Run dialog by pressing Windows + R or searching for “run”.

  3. Execute the following command: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /t REG_QWORD /d 1 /f

  4. This command creates a DWORD value named “RealTimeIsUniversal” and sets its value to “1”, allowing the timezone of your instance to be different from the host system.

  5. Open Settings and navigate to “Time & Language” -> “Date and Time”.

  6. Set your desired timezone.

  7. Restart your server for the changes to take effect.

Conclusion

By following these instructions, you can easily change the timezone on your VPS or dedicated server, ensuring accurate time representation and synchronization.

Was this article helpful?
Dislike 0
Views: 8