[rt-users] RT logs in wrong timezone

Wagner Pereira wpereira at pop-sp.rnp.br
Mon Aug 15 11:11:57 EDT 2011


Hello, friends.

I noticed that my rt.log has been populated in the wrong timezone (GMT). 
My timezone is BRT -03:00.

I found a discussion in which someone said to edit the RT.pm file and 
change the gmtime.

Then I found what follows. Can I change that? If yes, how can I?

--------------------------------
sub InitLogging {
...
         my ($package, $filename, $line) = caller($frame);
         $p{message} =~ s/(?:\r*\n)+$//;
         my $str = "[".gmtime(time)."] [".$p{level}."]: $p{message} 
($filename:$line)\n";
...
--------------------------------

Regards,

-- 
### At PoP-SP/RNP, every day is an IPv6 day ###

Wagner Pereira
PoP-SP/RNP - Ponto de Presença da RNP em São Paulo
CCE/USP - Centro de Computação Eletrônica da Universidade de São Paulo
http://www.pop-sp.rnp.br
Fixo. +55 11 3091-8901
Móvel. +55 11 9923-9554
fone at RNP: 10158902




More information about the rt-users mailing list