[rt-devel] LogToFile and GMT time

Dmitry Sivachenko mitya at cavia.pp.ru
Tue Nov 18 11:26:56 EST 2003


Hello!

If I define LogToFile in RT_SiteConfig.pm, timestamp is written in GMT timezone,
which is inconvenient.  Why not to write this time in local timezone?
I would be much more easy to compare timestapms with those in maillog, for
instance...


I propose the following patch:


--- RT.pm.old	Mon Sep  1 17:06:24 2003
+++ RT.pm	Tue Nov 18 19:11:33 2003
@@ -193,7 +193,7 @@
 			 mode=>'append',
 			 callbacks => sub { my %p = @_;
                                 my ($package, $filename, $line) = caller(5);
-                                return "[".gmtime(time)."] [".$p{level}."]: $p{message} ($filename:$line)\n"}
+                                return "[".localtime()."] [".$p{level}."]: $p{message} ($filename:$line)\n"}
              
              
Thanks!!              



More information about the Rt-devel mailing list