[rt-users] RT logs in wrong timezone

Ruslan Zakirov ruz at bestpractical.com
Mon Aug 15 11:44:23 EDT 2011


It's by design. Don't use LogToFile in production. Use syslog and
logging to screen (STDERR).

On Mon, Aug 15, 2011 at 7:11 PM, Wagner Pereira <wpereira at pop-sp.rnp.br> wrote:
> 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
>
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  Chicago, IL, USA  September 26 & 27, 2011
> *  San Francisco, CA, USA  October 18 & 19, 2011
> *  Washington DC, USA  October 31 & November 1, 2011
> *  Melbourne VIC, Australia  November 28 & 29, 2011
> *  Barcelona, Spain  November 28 & 29, 2011
>



-- 
Best regards, Ruslan.



More information about the rt-users mailing list