how to compress ticket age as printed?

Hi all, I'm trying to figure out where the ticket age, as display on queue or open tickets pages, are created. I'd like to compress the format from something like "1 day 5 hours 3 mins" to something smaller like "1d5h3m". Any help appreciated. Bill Pier eBuilt, Inc. Costa Mesa, CA, USA

Hi Bill, On Wed, Jul 09, 2003 at 02:43:25PM -0700, Bill Pier wrote:
I'm trying to figure out where the ticket age, as display on queue or open tickets pages, are created. I'd like to compress the format from something like "1 day 5 hours 3 mins" to something smaller like "1d5h3m".
Hmmm... There is a perl function in Kernel/Output/HTML/Generic.pm named CustomerAge(). If you change the "day(s)", "hour(s)" and "minute(s)" to "d", "h" and "m" you will get a compressed format.
Bill Pier eBuilt, Inc. Costa Mesa, CA, USA
Martin -- Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/ -- "Security is a process, not a product." - Bruce Schneier
participants (2)
-
Bill Pier
-
Martin Edenhofer