Ubuntu Server Editon time zone settings
Posted on th, 2009 by zxing
By default, Linux uses the UTC format as the standard time format. If you run a program in Linux and specify a different time zone in the program, a time error may occur.
The tzconfig and tzselect tools are provided in ubuntu to set the time zone. In Server Edition, we can use tzselect to set the time zone. Run:
Sudo tzselect
Select the time zone as prompted, and then:
Note that the following is the synchronization time with the ntp server. cn.pool.ntp.org is a public NTP server located in China.
Sudo cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
Sudo ntpdate cn.pool.ntp.org
PS: if multiple operating systems are installed on your machine, Ububtu considers the time in BIOS as UTC by default, therefore, two systems may write different time points into the BIOS, resulting in time confusion.
Modify the/etc/default/rcS file in Ubuntu and change UTC = yes to UTC = no.
This article is from "My work records"