Re: UTC or localtime
Thanks a lot for your replies, H.S. and Dave.
On Wed, 14 Jul 2010 12:44:30 -0400, H.S. wrote:
> "To change the computer to use UTC after installation, edit the file
> /etc/default/rcS, change the variable UTC to no. . .
"Setting UTC to no to use UTC"? This is so confusing that I have to look
for its definition (man 5 rcS) to find out why. But having done that, I'm
more confused, by my Linux box this time:
>From the man page:
,-----
| The UTC is used to govern how the hardware real time clock is
| interpreted when it is read (e.g., at boot time, for the purpose
| of setting the system clock) and when it is written (e.g., at
| shutdown). If this option is set to no then the system clock is
| assumed to be set to local time.
`-----
Mine is UTC=yes:
$ grep UTC /etc/default/rcS
UTC=yes
So it should imply that my hardware real time clock is set to UTC.
However,
$ date; hwclock --show
Wed Jul 14 20:33:58 EDT 2010
Wed 14 Jul 2010 08:33:58 PM EDT -0.953730 seconds
Seems to me my hardware clock is set to local time here instead.
Any comment?
Thanks
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
Reply to: