kubuntu与xp的时间问题

kubuntu与xp的时间问题

我的计算机系统稍微有点特殊:主机是XP系统,平常可以通过U盘启动Kubuntu系统。也就是说,我日常工作在双系统环境中,经常在这些系统之间进行切换。

由此发现了一个问题:在Kubuntu工作后,重启计算机切换到XP系统。发现XP的时间被修改为GMT+0时区的时间,即时间整整晚了8小时(中国是GMT+8时区)。

检查XP中的时区和时间设置,发现完全正常,XP并没有修改时区。

这个问题只发生在从Kubuntu切回XP时。反过来从XP切回Kubuntu则没有这个问题,Kubuntu中的时间和时区设置正常。

怀疑问题出在Kubuntu上,Kubuntu可能重新设置了Bios或者主板的时区设置。问题可以这样解决:

修改/etc/default/rcS文件,将UTC设置为no即可。

这个问题可能是我当初安装Kubuntu时,忽略了某项设置导致的?

关于UTC参数,系统帮助中的说明如下:

UTC This  is  used  to govern how the hardware real time clock is interpreted when it is read (e.g., at  boottime,  for  the purpose of setting the system clock) and when it is written (e.g., at shutdown).  If this option is set to no then the system clock is assumed
to be set to local time. If the option  is  set  to yes  then  the  system clock is assumed to be set to something approximating Coordinated  Universal  Time(UTC).   (POSIX systems keep a variant of UTC, without leap seconds.)

2014-01-07 updated: 在Debian系统中,该参数被调整到/etc/adjtime文件中,将UTC修改为LOCAL即可。也可以使用以下命令直接修改:

hwclock -w --localtime
Comments are closed.