Thanks for your help. For some reason I was 25 hours in the future by default. This instruction helped me resolve what seemed like a fairly basic issue. It made me feel like an uber noob
I'm using #! Statler OB. I'm not interested in installing ntpupdate, etc. I have my system clock set to UTC, I've specified UTC=yes in /etc/default/rcS as mentioned previously, I've run dpkg-reconfigure tzdata as root and selected my location (which is UTC+2). I've rebooted. The time shown on the bottom panel is still incorrect -- it shows UTC. After running tzdata update, dpkg-reconfigure the time it reports for UTC is actually FOUR hours behind my actual local time. It obviously thinks that my system clock is reporting local time not UTC. Ideas?
Last edited by SabreWolfy (2011-06-06 08:11:14)
The above instructions are correct. I rebooted again and checked the system clock, which was now set two hours earlier than UTC. I think the tzdata command may actually adjust the system clock, which means that it may need to be adjusted during the reboot (I'm pretty sure I did this the FIRST time I rebooted and it WAS still set to UTC...?). Anyway, rebooting, checking and then resetting the system clock to UTC "solved" this.
Last edited by SabreWolfy (2011-06-06 09:15:26)
73ChargerFan, many thanx! My wife just told me we've got 5 minutes before we need to get out of here and go to work, yet my clock said we still had 10 minutes. I then looked around here in the Crunchbang forums and found your little tip, which instantly pushed my clock on Statler Xfce ahead 5 minutes to the correct time.
Just who is General Failure and what's he doing reading my hard drive?
Big thanks for that, 73ChargerFan. My clock was 4hrs slow. It was only when it started getting light that I realised. It's gonna be a long day now.
Wake up and smell the sheep dip, folks
basic question for the rest of us still learning - but it came up trying to follow this thread, so others may find this useful:
It would be simple to change the /etc/default/rcS file, but it is read only...
How do I change the permissions to allow me to edit the UTC= entry? I can't get past the "read only" permission
I was having a similar problem (4.5 hours behind real local time) but found a slightly different solution.
I was unable to update using the sudo apt-get install update because my computer could not connect to the mirrors. I was also unable to install ntpdate and had no experience with manually installing packages.
Instead, I did the following:
I first changed the BIOS to reflect the actual time (as suggested in this thread). Not surprisingly, this did not correct my issue.
I then changed my time zone (as suggested in this thread) using sudo dpkg-reconfigure tzdata except that instead of changing it to my correct timezone, I changed it to London (GMT -0:00). This caused my computer to adjust both local and universal times.
I then returned to my BIOS, which now showed a different time. I set the BIOS time to Universal (London) time.
I then observed that my desktop clock matched the London time that I had entered in the BIOS.
I then changed my timezone to my actual time zone, and it adjusted my computer's "local" time while maintaining the appropriate "Universal" time.
This feels like a lazy fix, as it doesn't correct whatever underlying problem ntpdate would have, but I hope at least this helps someone in a similar situation as me!
I know this is an old thread but Waldorf (Wheezy) has changed things a bit. For a dual-boot machine Windows XP (and maybe others) and #! you should set the BIOS clock to localtime. The place to do this is no longer /etc/default/rcS but /etc/adjtime. Old howtos talked about setting UTC=no in /etc/default/rcS. This is no longer the place and the man page says as much.
1. Edit /etc/adjtime, change UTC to LOCAL.
2. Synchronise the system (software) time using ntp or manually using date. Check that the correct lime is displayed.
3. Push the system time to the hardware time with sudo hwclock --systohc.
4. Check that the BIOS time is the local time with sudo hwclock.
5. Check that the BIOS UTC time is UTC time with sudo hwclock --utc.
Reboot to Windows XP and you should see the correct time.
It's far more preferable to set the correct timezone for your location rather than lie about it to the computer otherwise DST changes may not be tracked correctly.
Twice a year, as soon as possible after DST changes, you will have to boot to Windows if only for a short while to adjust the BIOS clock. This is an ancient bugbear.
Last edited by KrunchTime (2013-05-27 04:48:44)
Last edited by xtra5 (2013-07-16 05:37:40)