ubuntu系統(tǒng)下禁用utc時(shí)間的設(shè)置方法
大家在安裝雙系統(tǒng)以后,發(fā)現(xiàn)進(jìn)入win7和ubuntu系統(tǒng)以后,顯示的時(shí)間不一致,后來(lái)發(fā)現(xiàn)是兩個(gè)系統(tǒng)對(duì)硬件時(shí)間的看法不一致
原因如下
1、Windows會(huì)認(rèn)為BIOS時(shí)間就是你的本地時(shí)間
2、ubuntu默認(rèn)時(shí)間是把BIOS時(shí)間當(dāng)成GMT+0時(shí)間,也就是世界標(biāo)準(zhǔn)時(shí),而我國(guó)在東八區(qū)(GMT+8),所以如果你的Ubuntu位置是中國(guó)的話你系統(tǒng)顯示的時(shí)間就是BIOS時(shí)間+8小時(shí)。假如現(xiàn)在是早上8點(diǎn),那么你Ubuntu會(huì)顯示8點(diǎn),這時(shí)BIOS中的時(shí)間是0點(diǎn)。
更正方法
將ubuntu對(duì)待bios時(shí)間的方法改為和windows一致。
代碼:
sudo timedatectl set-local-rtc 1
代碼:
$ timedatectl Local time: 六 2016-04-23 09:05:54 CST Universal time: 六 2016-04-23 01:05:54 UTC RTC time: 六 2016-04-23 09:05:54 Time zone: Asia/Shanghai (CST, +0800) Network time on: yes NTP synchronized: no RTC in local TZ: yes Warning: The system is configured to read the RTC time in the local time zone. This mode can not be fully supported. It will create various problems with time zone changes and daylight saving time adjustments. The RTC time is never updated, it relies on external facilities to maintain it. If at all possible, use RTC in UTC by calling 'timedatectl set-local-rtc 0'.
總結(jié)
以上就是這篇文章的全部?jī)?nèi)容了,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作能帶來(lái)一定的幫助,如果有疑問大家可以留言交流,謝謝大家對(duì)本站的支持。
版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。