lkml.org 
[lkml]   [2002]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel log messages using wrong timezone -- solved
"Friesen, Christopher [CAR:3R60:EXCH]" wrote:
>
> How does the kernel figure out how to timestamp the log output? The reason I'm
> asking is that we have a system that has /etc/localtime pointing to the
> Americas/Montreal timezone, but the log output from the kernel appears to be
> UTC.

Well, it turns out that klogd was the culprit. We were booting a ramdisk,
setting the time, starting syslog, and then setting the timezone from an
NFS-mounted file. klogd checks the timezone on startup only, so changing the
timezone did not affect the output of klogd. Guess we'll have to restart syslog
after setting the timezone.

Thanks to those who responded.

Chris


--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.072 / U:1.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site