Re: how to set correct time?
At 987742682s since epoch (04/19/01 18:58:02 -0400 UTC), Rory Campbell-Lange wrote:
> I foolishly don't know how to set the correct time for my system clock.
> The timezone is correctly set to London/England, but the time is about 6
> hours out (date reports the time in 'BST' - I presume this is "British
> Standard Time").
> I tried using the date command but nothing happened.
date must be run as root, like so:
date MMDDhhmm (MM = month DD = day hh = hour mm = minute)
You should specify localtime (ie, the time it is where you are).
More at issue is whether or not your clock stores time in UTC. If you dual
boot to windows, your BIOS clock should store time in local time. If it's
just linux, you should store your time in UTC (aka GMT).
The setting for whether the BIOS clock uses UTC or localtime is kept in
/etc/default/rcS. Make sure that's right, then make sure that your timezone
is correct (run 'tzconfig'). Then set the date.
For more information about UNIX time, do a 'man hwclock'. It has a good
description of how this all fits together.
Jason Healy | email@example.com
LogN Systems | http://www.logn.net/