RT log has wrong timezone

I think I’ve seen this mentioned somewhere, but I can’t find it, so–the
time stamp in our RT logs appears to be GMT, even though I’ve set the
Timezone to our timezone in RT_SiteConfig.pm. The web interface
presents everything with our timezone. Is there any way to get the logs
to use the appropriate timezone? Thanks.

Karl

Karl Boyken, system administrator
karl-boyken@uiowa.edu
303A MLH, Dept. of Comp. Sci.
http://www.cs.uiowa.edu/~boyken/
The U. of Iowa, Iowa City, IA 52242 319-335-2730 (voice)
319-335-3668 (fax)

smime.p7s (3.18 KB)

Log via syslog. Logging into file is in GMT to be consistent with DB.
And the latter is not recommended as may cause permissions problems
when RT is used in scripts and/or cronjobs.On Jan 16, 2008 10:45 PM, Karl Boyken boyken@divms.uiowa.edu wrote:

I think I’ve seen this mentioned somewhere, but I can’t find it, so–the
time stamp in our RT logs appears to be GMT, even though I’ve set the
Timezone to our timezone in RT_SiteConfig.pm. The web interface
presents everything with our timezone. Is there any way to get the logs
to use the appropriate timezone? Thanks.

Karl


Karl Boyken, system administrator
karl-boyken@uiowa.edu
303A MLH, Dept. of Comp. Sci.
http://www.cs.uiowa.edu/~boyken/
The U. of Iowa, Iowa City, IA 52242 319-335-2730 (voice)
319-335-3668 (fax)


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.

I think I’ve seen this mentioned somewhere, but I can’t find it, so–the
time stamp in our RT logs appears to be GMT, even though I’ve set the
Timezone to our timezone in RT_SiteConfig.pm. The web interface
presents everything with our timezone. Is there any way to get the logs
to use the appropriate timezone? Thanks.

As of 3.6.5 you have to edit lib/RT.pm to modify the function
“InitLogging” which uses gmtime(time).