Log file timestamps show GMT instead of US/Hawaii (GMT-10)

Alle,

We have recently upgraded from 2.0.13 to 2.0.15. Timestamps are now

appearing in the log files (a good thing), however, even though the timezone
in config.pm is set for US/Hawaii, the rt.log files are showing GMT times.
Has anyone else seen this? I’m also seeing some strange times on some email
headers.

[root@hilo tmp]# tail rt.log0
[Wed Apr 30 19:06:40 2003] [debug]: RT::Transaction=HASH(0x8f01ba8):
Checking condition OnOwnerChange…
[Wed Apr 30 19:06:40 2003] [debug]: RT::Transaction=HASH(0x8f01ba8): Doesn’t
match condition OnOwnerChange…
[Wed Apr 30 19:06:40 2003] [debug]: now requiring RT::Condition::OwnerChange
[Wed Apr 30 19:06:40 2003] [debug]: RT::Transaction=HASH(0x8f01ba8):
Checking condition OnOwnerChange…
[Wed Apr 30 19:06:40 2003] [debug]: RT::Transaction=HASH(0x8f01ba8): Doesn’t
match condition OnOwnerChange…
[root@hilo tmp]# date
Wed Apr 30 09:06:42 HST 2003
[root@hilo tmp]#

Best Regards,
Camron

Camron W. Fox
Hilo Office
High Performance Computing Group
Fujitsu America, INC.
E-mail: cwfox@fujitsu.com
Phone: (808) 934-4102
Pager: (808) 934-1290
Cell: (808) 937-5026

We have recently upgraded from 2.0.13 to 2.0.15. Timestamps are now
appearing in the log files (a good thing), however, even though the timezone
in config.pm is set for US/Hawaii, the rt.log files are showing GMT times.

By default, the callback in lib/RT.pm for logging is (InitLogging() ):

        callbacks => sub {my %p=@_; return "[".gmtime(time)."]

Which basically returns times in GMT (a good thing). You can change the
’gmtime’ in the above to ‘localtime’ to get log times in your local
(system) timezone.

Phone: (808) 934-4102

You missed the ‘+1’ there.

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B             Operations/Security