Start a conversation

Changing the Date, Time, and Time Zone on the Management Server

Overview


At times, you may need to change the date, time, and time zone on the Management Server. Please note that these changes may affect the database and traffic graphs.


 

Process

  1. Connect to the PAD server via SSH.
  2. Switch to the root user.
  3. It is recommended to stop the service before making any changes.
    oper service stop
  4. Set the corresponding date on the operating system (in the yyyymmdd format):
    date +%Y%m%d -s "yyyymmdd"
  5. Set the corresponding time (in the hh:mm:ss format): 
    date +%T -s "hh:mm:ss"
  6. Run the following command to set the desired time zone:
    cp /usr/share/zoneinfo/<Region>/<City> /etc/localtime

    For example, if you want to set the time zone to IST, the command will be:
    cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime

    You can navigate to the zoneinfo directory and check the available regions and cities by running the following commands:
    cd /usr/share/zoneinfo
    ll

    Note: Please make a backup of the existing time zone file before replacing it.
  7. Synchronize the OS time with the hardware clock:
    hwclock --systohc
  8. If you stopped the service in step 2, start it again:
    oper service start

 

Confirmation

  1. Run the date command to check if the OS time was updated.
  2. Run the hwclock --show command to check if the hardware clock is synchronized with the OS time.

 

Back to top

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments