SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem: everytime I boot my PC, the time is set back 4 hours relative to the time that was set on the last boot. ie, if the clock says 14:00 now, and I reboot, the clock will say 10:00. This all started when I followed the instructions here to set my clock to the right time (it was 10 minutes slow before, but at least none of this magic time-changing happened). So what I want to know is how to fix this so the clock will be normal again.
Here's some output that might be useful...
Code:
hernan@hernan:~ (23.740 MB)$ date
Sat Apr 2 01:55:59 CLT 2005
hernan@hernan:~ (23.740 MB)$ /sbin/hwclock
Sat 02 Apr 2005 05:56:11 AM CLT -0.178997 seconds
(as you can see, the kernel clock and the hw clock differ).
It probably has something to do with my timezone (CLT: -4 hrs) but I have no idea on how to go about fixing this.
The basic instructions I followed to set the clock were:
Quote:
Summary
* /etc/sysconfig/clock sets whether the hardware clock is stored as UTC or local time.
* Symlink /etc/localtime to /usr/share/zoneinfo/... to set your timezone.
* Run ``date MMDDhhmm'' to set the current system date/time.
* Type ``/sbin/hwclock --systohc [--utc]'' to set the hardware clock.
Originally posted by lagartoflojo
I have a problem: everytime I boot my PC, the time is set back 4 hours relative to the time that was set on the last boot. ie, if the clock says 14:00 now, and I reboot, the clock will say 10:00.
If this were a Windows box, I'd suggest just rebooting six times. ;-]
Originally posted by keefaz You could put ' ntpdate cl.pool.ntp.org ' in /etc/rc.d/rc.local
To be more accurate, better is to put it in a crontab, though
I'll have to read up on this crontab stuff.. thanks =D
I had this problem before. It was because I had set my clock to utc but told it local, or the other way around. There's a shutdown script you can modify. I'll try to find it. or you can grep for hwclock in your shutdown scripts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.