Date Time System Clock in a VirtualBox Debian ubuntu Guest Wrong


By default, the system clock in Debian is set to UTC (Universal Time), and then adjusted to your local time, based on your time zone and daylight savings time.  This can be a problem if you are running a Debian VirtualBox guest machine, because VirtualBox sets the virtual machine’s system clock to local time when the machine is started.  Because Debian expects the system clock to be UTC, the time zone adjustment results in the wrong local time (unless you live near Greenwich?).

You can fix the problem by editing the the file “/etc/default/rcS” (you’ll need to be root).  Simply change the line “UTC=yes” to “UTC=no” and save the file.  After rebooting, Debian will treat the system clock as local time (which it is) instead of UTC, and won’t adjust it for time zones.

 

from http://saintsteele.wordpress.com/2009/03/06/system-clock-in-a-virtualbox-debian-guest/

Leave a Comment