Hi, I try to create scrip to add date+time in custom field with UTC+7 timezone but I got UTC+0 timezone as result. Have I done something wrong?
Custom action commit code:
my $date = new RT::Date($self->CurrentUser);
$date->SetToNow();
my ($status, $msg) = $self->TicketObj->AddCustomFieldValue( Field =>114, Value => $date->ISO(Timezone=>‘Asia/Bangkok’));
my ($status, $msg) = $self->TicketObj->AddCustomFieldValue( Field =>8, Value => $date->ISO(Timezone=>‘Asia/Bangkok’));
unless ( $status ) {
$RT::Logger->error(“Couldn’t change assignTime: $msg”);
return 0;
}
return 1;