![]() |
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? TIA. |
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. |
Check that your hwclock is set to use UTC, not localtime. If not, make it so:
Code:
hwclock --utcCode:
ntpdate pool.ntp.orgCode:
hwclock --systohcCode:
env | grep TZ |
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.
|
Code:
ntpdate pool.ntp.orgThanks |
You should check to make sure ntpd is running on boot, that'll keep the clock in sync.
|
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.
Thanks for the suggestions. |
try:
/etc/default/rcS change: UTC=yes to UTC=no then set system clock in BIOS. |
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. Cheers, Evo2. |
Quote:
Evo2. |
| All times are GMT -5. The time now is 06:27 AM. |