Re: Unable to change/set time in Fedora 9



mcpoon <mywchong@xxxxxxxxx> writes:



Arty,

I face the same problem with my dual boot system and I hope you can

help me on this. Can you explain further how you disable sync with UTC?

I can't seems to find that.

In the file something like /etc/init.d/halt is a line something like
[ -x /sbin/hwclock ] && action "Syncing hardware clock to system time"
/sbin/hwclock --systohc
This tells the system to write the system time to the rtc (real time
clock) Now if you do not have linux on "localtime" in
/etc/sysconfig/clock, then this will write utc to the rtc. Windows will
interpret this as local time,and the problem begins. Now you can remove
this line from /etc/init.d/halt or you can tell your system it is on
localtime ( although there was a bug in some distros that they would
inappropriately still write utc even though the sytem was on localtime),
or remove hwclock as suggested ( alothough this is probably
counterproducgtive since it is also used to read the rtc on bootup and
this would mean that your system would always be someting like Jan1
1970.)



Thank you.





--

mcpoon
.



Relevant Pages

  • Solaris RTC
    ... I was checking to verify that Solaris uses UTC ... use localtime but UTC time like the rest of the world. ... Except apparently, Solaris x86. ... have a choice for the RTC, ...
    (comp.unix.solaris)
  • Re: hwclock problem with leapseconds - posix?
    ... fault of hwclock of misssetting the rtc can be corrected by --adjust, ... to use 'tai' and the 'right' zoneinfo file, ... Most people call UTC (with timezone ... calculations the system has do to between utc and localtime, ...
    (comp.os.linux.setup)
  • Re: after reboot computer time is changed
    ... updates the RTC with that wrong time later, ... assumes that the rtc time is UTC on bootup. ... localtime. ... Thus the clock will ...
    (comp.os.linux.setup)
  • Re: System Time advances 1 hour each bootup; /etc/localtime linked to non-mounted file?
    ... ]Since we entered BST, each time I reboot the machine, the system time ... attempt to keep the hardware clock accurate, ... clock in UTC not localtime. ... ]the system thinks it is in UTC at the time "hwclock" is called. ...
    (comp.os.linux.misc)
  • Re: System Time advances 1 hour each bootup; /etc/localtime linked to non-mounted file?
    ... ]Since we entered BST, each time I reboot the machine, the system time ... attempt to keep the hardware clock accurate, ... clock in UTC not localtime. ... ]the system thinks it is in UTC at the time "hwclock" is called. ...
    (comp.os.linux.setup)