[rt-users] Getting relative time in a template, configuring SLA and SLA alerting [SOLVED]

Kevin Falcone falcone at bestpractical.com
Wed Feb 20 10:50:08 EST 2013


On Wed, Feb 20, 2013 at 06:39:32AM +0800, Craig Ringer wrote:
> On 02/19/2013 10:48 PM, Kevin Falcone wrote:
> > On Tue, Feb 19, 2013 at 12:37:42PM +0800, Craig Ringer wrote:
> >> {
> >> my $d = RT::Date->new(RT::SystemUser);
> >> $d->Set(Format=>'ISO', Value=>$Ticket->Due, Timezone=>"GMT");
> >> our $tdiff = $d->AgeAsString();
> >
> > You can just say $ticket->DueObj->AgeAsString if you want to tighten
> > this up.
> >
> > When you want to replicate something RT does in core in the search
> > results, you can take a quick look at share/html/Elements/*/ColumnMap
> > (so look in RT__Ticket/ColumnMap for the DueRelative sub)
> 
> Thankyou for the advice. I'll amend the wiki with both points.

Thanks for updating the wiki.

Also - there's no need to override my Reply-To settings and send me
personal email.  I read all email sent to rt-users.

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130220/84958db0/attachment.sig>


More information about the rt-users mailing list