Rt system time

Can I force my RT install to use the system time/time zone?
The system time is correct, and /etc/rt/RT_SiteConfig.pm has always been set to Set($Timezone, ‘US/Pacific’);, but I’m noticing that the rt.log is logging 7 hours ahead (GMT?) Should I care? What’s the point of setting the timezone if we’re logging in UTC/GMT?

Kimberly McKinnis
System Operations Engineer
Service Provider Division, TiVo Inc
408-519-9607

Can I force my RT install to use the system time/time zone?
The system time is correct, and /etc/rt/RT_SiteConfig.pm has always
been set to Set($Timezone, ‘US/Pacific’);, but I’m noticing that the
rt.log is logging 7 hours ahead (GMT?) Should I care? What’s the
point of setting the timezone if we’re logging in UTC/GMT?

Is US/Pacific a timezone on your system? For example, I had this
same problem until I realized that on FreeBSD I needed to use America/
Los_Angeles

ls /usr/share/zoneinfo (or it’s equivalent on your system) will show
you the accepted names.

Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source
and other randomness

Great suggestion… but the time zone does exist.

[kmckinnis@sjspdsupport ~]$ ls /usr/share/zoneinfo/US/Pacific
/usr/share/zoneinfo/US/Pacific

[kmckinnis@sjspdsupport ~]$ ls /usr/share/zoneinfo/US/
Alaska Aleutian Arizona Central Eastern East-Indiana Hawaii Indiana-Starke Michigan Mountain Pacific Samoa

However, my system time is set to /America/Los_Angeles. You’d think it’d be the same, but for paranoia’s sake, we’ll make them match. Changing the RT config to America/Los_Angeles and rebooting doesn’t seem to have changed the logging away from UTC.From: Jo Rhett [mailto:jrhett@netconsonance.com]
Sent: Friday, April 03, 2009 6:34 PM
To: Kimberly McKinnis
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] rt system time

Can I force my RT install to use the system time/time zone?
The system time is correct, and /etc/rt/RT_SiteConfig.pm has always been set to Set($Timezone, ‘US/Pacific’);, but I’m noticing that the rt.log is logging 7 hours ahead (GMT?) Should I care? What’s the point of setting the timezone if we’re logging in UTC/GMT?

Is US/Pacific a timezone on your system? For example, I had this same problem until I realized that on FreeBSD I needed to use America/Los_Angeles

ls /usr/share/zoneinfo (or it’s equivalent on your system) will show you the accepted names.

Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source and other randomness

Great suggestion… but the time zone does exist.

[kmckinnis@sjspdsupport ~]$ ls /usr/share/zoneinfo/US/Pacific
/usr/share/zoneinfo/US/Pacific

[kmckinnis@sjspdsupport ~]$ ls /usr/share/zoneinfo/US/
Alaska Aleutian Arizona Central Eastern East-Indiana Hawaii
Indiana-Starke Michigan Mountain Pacific Samoa

However, my system time is set to /America/Los_Angeles. You’d think
it’d be the same, but for paranoia’s sake, we’ll make them match.
Changing the RT config to America/Los_Angeles and rebooting doesn’t
seem to have changed the logging away from UTC.

RT logs and stores data in the database in UTC
The setting you’re touching changes the display in the web ui

If you want non-utf timestamps in your logs, have RT log through
syslog instead of LogToFile

-kevin

Aha. Thanks!From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Monday, April 06, 2009 1:45 PM
To: RT Users
Subject: Re: [rt-users] rt system time

Great suggestion… but the time zone does exist.

[kmckinnis@sjspdsupport ~]$ ls /usr/share/zoneinfo/US/Pacific
/usr/share/zoneinfo/US/Pacific

[kmckinnis@sjspdsupport ~]$ ls /usr/share/zoneinfo/US/
Alaska Aleutian Arizona Central Eastern East-Indiana Hawaii
Indiana-Starke Michigan Mountain Pacific Samoa

However, my system time is set to /America/Los_Angeles. You’d think
it’d be the same, but for paranoia’s sake, we’ll make them match.
Changing the RT config to America/Los_Angeles and rebooting doesn’t
seem to have changed the logging away from UTC.

RT logs and stores data in the database in UTC
The setting you’re touching changes the display in the web ui

If you want non-utf timestamps in your logs, have RT log through
syslog instead of LogToFile

-kevin

From: Jo Rhett [mailto:jrhett@netconsonance.com]
Sent: Friday, April 03, 2009 6:34 PM
To: Kimberly McKinnis
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] rt system time

Can I force my RT install to use the system time/time zone?
The system time is correct, and /etc/rt/RT_SiteConfig.pm has always
been set to Set($Timezone, ‘US/Pacific’);, but I’m noticing that
the rt.log is logging 7 hours ahead (GMT?) Should I care? What’s
the point of setting the timezone if we’re logging in UTC/GMT?

Is US/Pacific a timezone on your system? For example, I had this
same problem until I realized that on FreeBSD I needed to use
America/Los_Angeles

ls /usr/share/zoneinfo (or it’s equivalent on your system) will show
you the accepted names.


Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source
and other randomness


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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