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.

-kevin

Attachment: pgpNaD457l4oR.pgp
Description: PGP signature

Reply via email to