[rt-users] Resetting due date when moving tickets between queues

Joel Dahl joel at vnode.se
Thu Jun 7 08:12:18 EDT 2012


On 06-06-2012 22:01, Kevin Falcone wrote:
> On Tue, Jun 05, 2012 at 10:22:06AM +0200, Joel Dahl wrote:
> > With the scrip below, X days are added based on today date, instead of X days
> > based on the creation date.
> > 
> > I'd appreciate some help with this. :-)
> > 
> >   $due_date->SetToNow;
> >   $due_date->AddDays( $queue->DefaultDueIn );
> 
> You tell it SetToNow, instead inflate the $ticket->CreatedObj or
> otherwise call Set with the Create time.
> 
> You can find documentation in RT::Date about what things like SetToNow
> do.

Thank you. It works now. :-)

-- 
Joel



More information about the rt-users mailing list