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

Reply via email to