On Mon, Aug 15, 2011 at 12:11:57PM -0300, Wagner Pereira 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?
RT logs in GMT (it does almost everything internally in GMT). If you
want to timestamp differently, we usually suggest logging to syslog or
to apache rather than to rt.log.
-kevin
> --------------------------------
> sub InitLogging {
> ...
> my ($package, $filename, $line) = caller($frame);
> $p{message} =~ s/(?:\r*\n)+$//;
> my $str = "[".gmtime(time)."] [".$p{level}."]: $p{message}
> ($filename:$line)\n";
> ...
> --------------------------------
pgpRY83FnTnJL.pgp
Description: PGP signature
-------- 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
