Clock?

Bernardo Innocenti bernie at codewiz.org
Sat Dec 22 18:25:56 EST 2007


Jerry Van Baren wrote:

> FWIIW, the hardware clock configuration is set to use localtime by 
> default.  This can be reconfigured to use UTC (see /etc/rc.sysinit which 
> includes the config file /etc/sysconfig/clock if it exists), but it 
> probably isn't worth the effort.

>From hwclock's man page:

  If you specify neither --utc nor --localtime , the default is whichever was  specified  the  last  time
  hwclock  was  used  to set the clock (i.e. hwclock was successfully run with the --set , --systohc , or
  --adjust options), as recorded in the adjtime file.  If the adjtime file doesn't exist, the default  is
  local time.

So the first time you set the hwclock with --utc, it will
be kept that way.

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/



More information about the Devel mailing list