Re: Setting The System Clock [Linux]

From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 11/01/03


Date: Sat, 1 Nov 2003 10:59:57 +0000 (UTC)

John Hasler <john@dhh.gt.org> writes:

]Bill Unruh writes:

]> chrony assumes that the local clock is in UTC...

Yes, but chrony also corrects for your rtc errors. Thus chrony will look
at your rtc, discover that it is 8 hours ( 8*3600 sec) out, and correct
for this. Thus when you boot up and run chrony -r -s, it will look in
/etc/chrony.rtc, see that your real time clock is 28800 sec out, read
the rtc, subtract 28800 sec, and set your Linux system time to that.

Windows of course has no such mechanism, so it will read the rtc, assume
it is on local time, (which it will be) and display that time.

]From the Chrony manual:

]rtconutc
]--------

] `chronyd' assumes by default that the real time clock (RTC) keeps
]local time (including any daylight saving changes). This is convenient
]on PCs running Linux which are dual-booted with DOS or Windows.

] NOTE : IF YOU KEEP THE REAL TIME CLOCK ON LOCAL TIME AND YOUR
]COMPUTER IS OFF WHEN DAYLIGHT SAVING (SUMMER TIME) STARTS OR ENDS, THE
]COMPUTER'S SYSTEM TIME WILL BE ONE HOUR IN ERROR WHEN YOU NEXT BOOT AND
]START CHRONYD.

Yes, the fact that if you change your rtc chrony has no way of
compensating for it, because it does not and cannot know that it has
happened, so chrony does not solve the problem of daylight savings time
if you have your computer rtc on local time. Agreed. What it does solve
is the problem of having your rtc on local time.



Relevant Pages

  • Re: Setting The System Clock [Linux]
    ... but chrony also corrects for your rtc errors. ... >the rtc, subtract 28800 sec, and set your Linux system time to that. ... >it is on local time, and display that time. ...
    (comp.os.linux.misc)
  • Re: What time is it? Issues with Local time, system time, DST
    ... be for local time, not UTC. ... RTC, so that when processor is asleep or off, onboard batteries ... So is the standard way to handle this to store time zone and DST state ... The time zone which is set for the device is stored in the registry by ...
    (microsoft.public.windowsce.platbuilder)
  • Re: What time is it? Issues with Local time, system time, DST
    ... Apparently CE stores time in local time, ... be for local time, not UTC. ... RTC, so that when processor is asleep or off, onboard batteries ... you can't know the UTC unless you also have, in some non-volatile ...
    (microsoft.public.windowsce.platbuilder)
  • Re: What time is it? Issues with Local time, system time, DST
    ... works with a server that could be in a different time zone, ... is expecting to be local time. ... not the coordination of two (RTC, ... implemented years ago and we had trouble getting registry persistence ...
    (microsoft.public.windowsce.platbuilder)
  • What time is it? Issues with Local time, system time, DST
    ... Apparently CE stores time in local time, ... be for local time, not UTC. ... RTC, so that when processor is asleep or off, onboard batteries ... you can't know the UTC unless you also have, in some non-volatile ...
    (microsoft.public.windowsce.platbuilder)