[rt-users] set Due depending on Created

Ruslan Zakirov ruz at bestpractical.com
Wed Oct 22 10:29:48 EDT 2008


my $created = $self->TicketObj->CreatedObj;
$created->Add...;
my ($status, $msg) = $self->TicketObj->SetDue( $created->ISO );
$RT::Logger->error("Couldn't set due date: $msg") unless $status;

On Wed, Oct 22, 2008 at 5:46 PM, Violetta Wawryk
<v.wawryk at science-computing.de> wrote:
>
> Hi,
>
> yes I am doing that already, but they add the days to the current date and
> not the Created date. Does anyone actually know how I can tell the perlthing
> to use the created date and not the current date. That would be very
> helpful.
>
> Thanks.
>
> Violetta
>
> Ruslan Zakirov schrieb:
>>
>> Look into RT::Date class - lib/RT/Date.pm there are several simple
>> methods to add time to the date.
>
> --
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Dr. Florian Geyer,
> Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Prof. Dr. Hanns Ruder
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
>



-- 
Best regards, Ruslan.



More information about the rt-users mailing list