Re: hardware clock and utc, etc...
On Sun, Sep 20, 2009 at 06:42:23PM +1000, Danny Rawlins wrote:
Juergen Daubert wrote:
On Fri, Sep 18, 2009 at 02:04:59PM +0300, Vasylchyshyn Nikolay wrote:
Hello guys.
Hi,
Hello,
I have some problem. How can i set my RTC to UTC?
in rc.conf: TIMEZONE=Europe/Kiev
The problem is actually in the fact, that when i do # hwclock --utc --systohc, then RTC is setups in localtime minus 3 hours. But when i do hwclock --utc --hctosys, then my sys time is the same as in RTC.
That's wrong, if you have your TIMEZONE set in rc.conf and, more important, your /etc/localtime is a valid symlink to /usr/share/zoneinfo/Europe/Kiev than your systime should be RTC time + 3 hours.
How can i configure my RTC to UTC and have correct localtime? (I know about /etc/adjtime and rc:79 hwclock --hctosys and rc.shutdown:37 hwclock --systohc)
If i setup my RTC to 10:00:00 (say, from BIOS). And the last line of /etc/adjtime is UTC, then when i boot up CRUX, i have localtime set to 10:00:00, but when i do shutdown, then my RTC sets to 7:00:00. (... then bootup - 7:00:00, shutdown - 4:00:00) So, i get 3 hours time shift... How can I avoid this?
And how cat I properly set my RTC to UTC?
- verify the /etc/localtime symlink - set your systime to the correct localtime, best with rdate - run 'hwclock --utc --systohc'
Also if you dual boot be sure the other systems are correct to.
HTH and best regards Juergen
Danny _______________________________________________ CRUX mailing list CRUX@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux
Thank you, Hazel, Juergen, Denny, for your responses. I used Hazel recipe, then Juergen recipe. Neither is working for me :(. Maybe the problem is in the fact, that when i do $ hwclock --show and $ hwclock --debug --show i see the same result? So, i set my RTC to localtime. Localtime is OK too :). In any way, thank you for your letters, time and responses. With best regards, Nikolay.
participants (1)
-
Vasylchyshyn Nikolay