<div>Hello</div>
<div> </div>
<div>I want to set a different SLA if user filled the field Start, bellow is my code, but doesn´t work.</div>
<div> </div>
<div>
<p>my $now = RT::Date->new($RT::SystemUser);<br>my $sla = RT::Date->new($RT::SystemUser);<br>$now->SetToNow;<br>$sla->SetToNow;<br>$sla->AddSeconds(+14400);</p>
<p>if ( $self->TicketObj->Starts eq '1970-01-01 00:00:00' ) {<br>$self->TicketObj->SetStarts( $now->ISO );<br>}<br>else {<br>$sla = $self->TicketObj->Starts;<br>$sla->AddSeconds(+14400);<br>}</p>
<p>if ( $self->TicketObj->Started eq '1970-01-01 00:00:00' ) {<br>$self->TicketObj->SetStarted( $now->ISO );<br>}<br>if ( $self->TicketObj->Due eq '1970-01-01 00:00:00' ) {<br>$self->TicketObj->SetDue( $sla->ISO );
<br>}<br>return 1;</p>
<p> </p>
<p>Sds</p>
<p> </p>
<p>Cristiano</p></div>