|
|
隔了很久又装archlinux了,时间显示老是不对,其实就没有正确过。
现在的时间为早上9点半多, Hardware clock为正确时间。如何才能在系统中显示正确时间?
$sudo hwclock -D
hwclock from util-linux-ng 2.16
Using /dev interface to clock.
Last drift adjustment done at 1252660062 seconds after 1969
Last calibration done at 1252660062 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2009/09/11 09:37:30
Hw clock time : 2009/09/11 09:37:30 = 1252661850 seconds since 1969
2009年09月11日 星期五 17时37分30秒 -0.238230 seconds
----------------------
$ hwclock --local
2009年09月11日 星期五 09时38分58秒 -0.875270 seconds
$ hwclock --utc
2009年09月11日 星期五 17时39分09秒 -0.250266 seconds
-------------------
/etc/rc.conf 为:
LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Asia/Shanghai"
HARDWARECLOCK="localtime"也试过。结果一样
----------------------
用过这个:
$ sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
$ sudo hwclock --hctosys |
|