Win7中Vbox跑Centos7发现时间紊乱,不知所措。
[lee@localhost ~]$ date
2014年 08月 09日 星期六 17:52:58 CST
[lee@localhost ~]$ timedatectl
Local time: 六 2014-08-09 18:37:03 CST
Universal time: 六 2014-08-09 10:37:03 UTC
Timezone: Asia/Shanghai (CST, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
[lee@localhost ~]$
【设置系统时区为本地时区】
[lee@localhost ~]$ timedatectl set-local-rtc true
==== AUTHENTICATING FOR org.freedesktop.timedate1.set-local-rtc ===
Authentication is required to control whether the RTC stores the local or UTC time.
Authenticating as: root
Password:
==== AUTHENTICATION COMPLETE ===
[lee@localhost ~]$ timedatectl
Local time: 六 2014-08-09 18:40:10 CST
Universal time: 六 2014-08-09 10:40:10 UTC
Timezone: Asia/Shanghai (CST, +0800)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: yes
DST active: n/a
Warning: The RTC is configured to maintain time in the local timezone. This
mode is not fully supported and will create various problems with time
zone changes and daylight saving adjustments. If at all possible use
RTC in UTC, by calling 'timedatectl set-local-rtc 0'.
[lee@localhost ~]$
==================
登入取消网络时间;再修改时间!
然后注销看看?!
==================
[lee@localhost ~]$ date
2014年 08月 09日 星期六 10:46:31 CST
[lee@localhost ~]$ timedatectl
Local time: 六 2014-08-09 10:46:48 CST
Universal time: 六 2014-08-09 02:46:48 UTC
Timezone: Asia/Shanghai (CST, +0800)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: yes
DST active: n/a
Warning: The RTC is configured to maintain time in the local timezone. This
mode is not fully supported and will create various problems with time
zone changes and daylight saving adjustments. If at all possible use
RTC in UTC, by calling 'timedatectl set-local-rtc 0'.
[lee@localhost ~]$
------------------
(责任编辑:IT) |