To change the time zone settings:
- Go to the Center Server client and access the DSVA console.
- Press ALT + F2 to open the non-graphical interface.
This opens the command line interface (CLI).
- Switch to root by executing the command below:
sudo -s
- Enter the default password "dsva".
- Back up the old time zone settings. Run the following command:
cp /etc/localtime /etc/localtime-old
- Go to the directory /usr/share/zoneinfo. Run the following commands:
cd /usr/share/zoneinfo
ls -aThe list of time zone regions will be displayed.
- Choose the most appropriate region and replace the /etc/localtime file.
For example, to set the local time in Shanghai, run the following command:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- To verify that the time zone has been set, run the "date" command.