[rt-users] Timestamps when logging to a file

Mike Friedman mikef at ack.Berkeley.EDU
Mon Dec 12 23:08:28 EST 2005

Hash: SHA1

On Mon, 12 Dec 2005 at 18:29 (-0800), Jim Meyer wrote:

> On Mon, 2005-12-12 at 16:35, Mike Friedman wrote:
>> Now most of the entries in my log file are, indeed, in local time, but 
>> they are interspersed with messages that are still using GMT.  Is there 
>> some other place besides RT.pm that I must change in order to get 
>> consistent local time in my log file?
> YMMV, but here's how I go hunting such things:
>> cd /path/to/rt
>> grep -rl gmtime lib
> lib/RT/Date.pm
> lib/RT/Tickets_Overlay.pm
> lib/RT.pm
> lib/RT.pm.in


I had already done that.  But when I looked at the code in those two 
modules, it appeared that they just manipulate dates, but don't actually 
do their own logging.

My problem is specifically with the writing to a log file.  (In fact, if I 
configure to write to syslog instead, I get local time with no mods, and 
this makes sense from the code because syslogging is treated differently).

I was hoping that there is some other module that is influencing the date 
in the logs in a more subtle way, perhaps not calling gmtime directly.

Or, maybe RT.pm is the only responsible module, but I need to do more than 
just copy it to local/lib. (Unlike mason components, there doesn't seem to 
be a cache that needs to be deleted.  Besides, I am getting localtime in 
most of my log messages, it's just that about 1/3 of them are still using 


Mike Friedman                   System and Network Security
mikef at ack.Berkeley.EDU          2484 Shattuck Avenue
1-510-642-1410                  University of California at Berkeley
http://ack.Berkeley.EDU/~mikef  http://security.berkeley.edu

Version: PGP 6.5.8


More information about the rt-users mailing list