[CentOS] Syslog timezone issue

Fri Jan 11 23:45:37 UTC 2008
mouss <mlist.only at free.fr>

Bart Schaefer wrote:
> On Jan 11, 2008 12:13 PM, Filipe Brandenburger <filbranden at gmail.com> wrote:
>> IIRC, the datestamp is put by the process that is logging, not by syslog
>> itself. Maybe when that process started you hadn't configured the right
>> /etc/localtime and the process still thinks it's running in UTC (processes
>> read /etc/localtime only once).
> 
> Our daemon is started after sendmail and before cron, and both the
> sendmail and cron log files use the local timezone, so ...
> 
> Also there's the phenomenon of the timezone changing in what seems to
> be a random fashion when the process forks.
> 
>> Did you try rebooting the machine to see if it solves the problem?
> 
> It's been rebooted several times for other reasons.  No change.

does your daemon run chrooted? if so, you need to copy /etc/localtime to
the cage.