|
|

楼主 |
发表于 2008-1-23 09:49:22
|
显示全部楼层
Post by maitr;1810039
也许能有点用处?
[php]# /etc/conf.d/clock
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time). If your clock is set to the local time, then
# set CLOCK to "local". Note that if you dual boot with Windows, then
# you should set it to "local".
CLOCK="local"
# Select the proper timezone. For valid values, peek inside of the# /usr/share/zoneinfo/ directory. For example, some common values are
# "America/New_York" or "EST5EDT" or "Europe/Berlin". If you want to
# manage /etc/localtime yourself, set this to "".
TIMEZONE="Asia/Shanghai"
# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here.
CLOCK_OPTS="--directisa"
[/php]
我现在的配置和这个一样,
但是系统时间快了8小时。
唯一的解释是:directisa读的是硬件时间这没错
然而系统把他当成UTC时间,然后自己加了8小时,得到他所认为的local time。
另一方面,在gnome的面板里,当我把时间设成utc,
结果反而是不快不慢,和真实时间一样,
说明gnome时钟以系统时钟为参照,utc=系统时钟-8h,负负得正!!!
虽然知道原因了,可是我还是不清楚要怎么设置。
理论上把上面的配置改为CLOCK="UTC",就可以骗过内核不去+8h。
但实际上却没用。
这个问题搞得我头痛死了。。。。 |
|