DebianThis forum is for the discussion of Debian 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.
Distribution: debian, sometimes sprinkled with a touch of fluxbox; ubuntu on occasion,
Posts: 14
Rep:
utc-time 2 hours off
I have a problem with utc time on Debian Lenny Desktop (gnome).
UTC time on my box is 2 hours off with the real UTC time.
Since my timezone is Europe/Brussels (CEST), it adds another 2 hours to the (wrong) UTC time.
I installed ntp, ntpdate; I tried changing ntp-server.. To no avail.
Timezone is correctly set up as 'Europe/Brussels' with dpkg-reconfigure tzdata.
Anyone a suggestion on how to solve this problem?
Have you checked the ntp logs to see if it's updating properly? UTC is UTC, and the system clock runs it. For the timezone, the computer calculates the shift whenever it reads the clock, it never adjusts the clock to local time.
One exception, though. Are you dual-booting with Windows? If so, Windows will adjust the system clock to local time.
Thanks for listing the commands, but remember that if you are dual-booting to Windows, don't set the system clock to UTC, set it to local time. That'll keep Windows happy.
Distribution: debian, sometimes sprinkled with a touch of fluxbox; ubuntu on occasion,
Posts: 14
Original Poster
Rep:
Apparently the problem is only on my debian computer (lenny). I tried installing ntp on another computer, without problems. I'll have to look into it, later perhaps.
Two hours is too big a time difference for ntp to be able to correct.
Easiest fix that won't mess with your system is that next time your machine is off for more than two hours correct the hw clock in the bios before booting into your os. If you don't wait the two hours before adjusting the clock back then there will be files on your machine with timestamps in the future. Most programs deal with this ok, but if the two hours downtime is not a problem for you, you might as well use that approach.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.