RT344 -->RT log file shows different time

I have a problem with Time that shows in my RT log file.
The time in RT log file seems 5 hours faster than the system clock.
Also, I checked my RT_SiteConfig.pm file and configured with
Set($Timezone,‘US/Central’)
(to make sure it is not creating the problem)

Still, I am having the same problem. Any body with similar problem or
answers…

TIU,

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On Thu, 19 Apr 2007 at 14:47 (-0500), Raj K Gurung wrote:

I have a problem with Time that shows in my RT log file. The time in RT
log file seems 5 hours faster than the system clock. Also, I checked my
RT_SiteConfig.pm file and configured with Set($Timezone,‘US/Central’)
(to make sure it is not creating the problem)

Still, I am having the same problem. Any body with similar problem or
answers…

Yes, the timezone used for logging is hardcoded as UTC in lib/RT.pm. I
put in a local fix that just changed ‘gmtime(time)’ to ‘localtime(time)’.
The code in RT.pm changed between 3.4.4 and 3.6.3, so that in the former
there are two such references to be changed and in the latter only one.

The $Timezone variable, I believe, just affects the web interface.

Mike

Mike Friedman Information Services & Technology
mikef@ack.Berkeley.EDU 2484 Shattuck Avenue
1-510-642-1410 University of California at Berkeley
Socrates and Berkeley Scholars Web Hosting Services Have Been Retired | Web Platform Services http://ist.berkeley.edu

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBRig1IK0bf1iNr4mCEQI6JgCfQYIRvrpvfbNxPzX9MDCaZIhNtk0AoN43
tS+6McLG8dpyWdr2JnOxZ9dB
=WXPR
-----END PGP SIGNATURE-----

Thanks Mike.

It worked.

RajOn Thu, 2007-04-19 at 20:35 -0700, Mike Friedman wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 19 Apr 2007 at 14:47 (-0500), Raj K Gurung wrote:

I have a problem with Time that shows in my RT log file. The time in RT
log file seems 5 hours faster than the system clock. Also, I checked my
RT_SiteConfig.pm file and configured with Set($Timezone,‘US/Central’)
(to make sure it is not creating the problem)

Still, I am having the same problem. Any body with similar problem or
answers…

Yes, the timezone used for logging is hardcoded as UTC in lib/RT.pm. I
put in a local fix that just changed ‘gmtime(time)’ to ‘localtime(time)’.
The code in RT.pm changed between 3.4.4 and 3.6.3, so that in the former
there are two such references to be changed and in the latter only one.

The $Timezone variable, I believe, just affects the web interface.

Mike


Mike Friedman Information Services & Technology
mikef@ack.Berkeley.EDU 2484 Shattuck Avenue
1-510-642-1410 University of California at Berkeley
Socrates and Berkeley Scholars Web Hosting Services Have Been Retired | Web Platform Services http://ist.berkeley.edu


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBRig1IK0bf1iNr4mCEQI6JgCfQYIRvrpvfbNxPzX9MDCaZIhNtk0AoN43
tS+6McLG8dpyWdr2JnOxZ9dB
=WXPR
-----END PGP SIGNATURE-----