Saturday, September 12, 2009

UTC time in Ubuntu and Windows

Ok, so you accidentally selected that the time in Ubuntu is UTC and now whenever you log in to Windows, that stupid (stupid for not having an option to select from) assumes that the clock from BIOS is @ localtime. Anyway, just
sudo gedit /etc/default/rcS


And edit UTC=yes to UTC=no. Simple as that. Next time you log in to Ubuntu it will show for a while (presumably it will get the right time in a few minutes while checking for the the right one in ntp.ubuntu.com) the old one. If you want to force it to show the right one right away then you should just
ntpdate ntp.ubuntu.com