Change Time Zone Reference
Http://blog.sina.com.cn/s/blog_6c9d65a1010145st.html
1. First check the time zone:
[Email protected]:~$ date-rtue, Dec 2013 18:23:01 +0800
If you want to modify the time zone, execute sudo tzselect
2. Select Region: Asia
[email protected]:~$ sudo tzselect[sudo] password for Swfsadmin:sorry, try again. [sudo] password for swfsadmin:please identify a location, so this 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 Ocean10) Pa Cific Ocean11) 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) Palestine (2) Armenia () Japan) Ph Ilippines 3) Azerbaijan Jordan Notoginseng) Qatar 4) Bahrain) Kazakhstan Russia 5) Bangladesh) Korea (north), Saudi Arabia 6) Bhutan) Korea (south) Singapore 7) Brunei Kuwait) Sri Lanka 8) Cambodia) Kyrgyz Stan) Syria 9) (Laos) TAIWAN10) Cyprus) Leban ON) Tajikistan11) East Timor) Macau) Thailand12) Georgia 2 9) Malaysia () Turkmenistan13) Mongolia) Arab Emirates14) I Ndia) Myanmar (Burma) Uzbekistan15) Indonesia) NepalNAM16) Iran Oman) Yemen17) Iraq? 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 have been given: China East China-beijing, Guangdong, Shanghai, etc. Therefore tz= ' Asia/shanghai ' would be used. Local time is now: Tue Dec 18:22:10 CST 2013.Universal time are now: Tue Dec 10:22:10 UTC 2013.Is the above I nformation ok?1) Yes2) no#? 1You can make this change permanent to yourself by appending the line tz= ' Asia/shanghai '; export tzto the file '. Prof Ile ' 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 Zone Reference