How to let a VPS set a custom timezone

October 21, 2022 / Virtual Server

In this guide, we will explain how to allow a VPS to set a custom timezone. Custom timezone cannot be set by the VPS owner. So, the VPS has to use the timezone set on the node. But, sometimes users need a customised timezone based on their geographical position.

Sys_time needs to be enabled on your node for a VPS to set its timezone. This thing needs to be scheduled as it includes a VPS reboot. A maintenance window of 10 to 15 minutes is adequate.

 

Follow the steps

  1. Log in to the node and run the commands-
    #vzctl stop
    #vzctl set –save –capability sys_time: on
    #vzctl start
  2. Then change the timezone or date on your VPS-
    #ln -fs /usr/share/zoneinfo/UK/Leeds /etc/localtime

That’s it! This way a VPS can set a different timezone. Never hesitate to contact our support team for any help and you can raise questions in our forum discussion too. There you will get many responses.

Spread the love