1. First check the time zone:
[Email protected]:~$ Date-rfri, 2016 16:54:59-0800
2. Select Region: Asia
If you want to modify the time zone, execute sudo tzselect
[Email protected]:~$ sudo tzselect
[sudo] password for beachboyy:
Please identify a, so, time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
Pacific Ocean
One) None-i want to specify the time zone using the Posix TZ format.
#? 5
3. Select Country: China
Please select a country. 1) Afghanistan ) Israel &NB Sp 35) palestine 2) Armenia ) Japan PHILIPPINES 3) Azerbaijan  20) Jordan 37) qatar 4) Bahrain &NBSP ; Kazakhstan 38) russia 5) Bangladesh & nbsp 22) Korea (north) ) Saudi Arabia 6) Bhutan &NB Sp 23) Korea (south) ) singapore 7) Brunei 24) Kuwait 41) Sri lanka 8) Cambod IA  25) Kyrgyzstan 42) syria 9) China & nbsp $) Laos  43 ) TAIWAN10) Cyprus  27) Lebanon & nbsp Tajikistan11) East Timor 28) Macau ) Thailand12) Georgia ) Malaysia & nbsp 46) Turkmenistan13) Hong Kong Mongolia &NB Sp 47) Arab Emirates14) India &NBSP ; Myanmar (Burma) Uzbekistan15) Indonesia Nepal VIETNAM16) Iran &NB Sp 33) Oman  50) YEMEN17) Iraq 34) pakistan#? 9
4. Choose your time zone: GMT
Please select one of the following time zone Regions.1) east China-beijing, Guangdong, Shanghai, ETC.2) Heilongjiang (ex Cept Mohe), Jilin3) Central China-sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, Etc.4) Most of Tibet & Xinjiang5) west Tibet & xinjiang#? 1
5. Confirm the verification:
The following information has been Given:china East China-beijing, Guangdong, Shanghai, etc. Therefore tz= ' Asia/shanghai ' would be used. Local time is Now:sat 08:56:28 CST 2016.Universal time is Now:sat 00:56:28 UTC 2016.Is the above inf Ormation ok?1) Yes2) no#? 1You can make this change permanent to yourself by appending the line tz= ' Asia/shanghai '; Export Tzto the file '. Profile ' in your home directory; Then logs out and logs in again. Here is the TZ value again, this time on the standard output so that youcan use the/usr/bin/tzselect command in shell script S:asia/shanghai
6. copy files to/etc directory sudo cp/usr/share/zoneinfo/asia/shanghai/etc/localtime7. Update time sudo ntpdate time.windows.com change Time Reference:
Modification time
sudo date-s mm/dd/yy//modification date sudo date-s hh:mm:ss//Modified Time
Time to modify the hardware CMOS after the modification time
sudo hwclock--SYSTOHC//Very important, if there is no such a step, the latter time is still not allowed
Ubuntu Server Set time zone and update time