Re: Setting The System Clock [Linux]
From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 11/01/03
- Next message: HansO: "XFS as a module"
- Previous message: anc: "Re: Mulit boot question"
- In reply to: John Hasler: "Re: Setting The System Clock [Linux]"
- Next in thread: Villy Kruse: "Re: Setting The System Clock [Linux]"
- Reply: Villy Kruse: "Re: Setting The System Clock [Linux]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: HansO: "XFS as a module"
- Previous message: anc: "Re: Mulit boot question"
- In reply to: John Hasler: "Re: Setting The System Clock [Linux]"
- Next in thread: Villy Kruse: "Re: Setting The System Clock [Linux]"
- Reply: Villy Kruse: "Re: Setting The System Clock [Linux]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|