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

Kevin Falcone falcone at bestpractical.com
Wed Jun 6 23:01:16 EDT 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120606/27c32e08/attachment.sig>


More information about the rt-users mailing list