[Rt-commit] rt branch, 4.4/set-custom-field-to-now-scrip-action, repushed
Shawn Moore
shawn at bestpractical.com
Thu Dec 1 15:06:32 EST 2016
The branch 4.4/set-custom-field-to-now-scrip-action was deleted and repushed:
was c1d1029ffdb07a8f85ac0a71fb66c38df0248ade
now a99bdb9ae1490ccbfbc185e36346fb872352f40c
1: c1d1029 ! 1: a99bdb9 Add scrip action that sets a custom field value to the current date/time
@@ -2,7 +2,7 @@
Add scrip action that sets a custom field value to the current date/time
- The CustomField name is provided as the action's Argument.
+ The CustomField name is provided as the action's Argument
Fixes: T#166550
@@ -81,7 +81,7 @@
+ my $self = shift;
+ my $DateObj = RT::Date->new($self->TicketObj->CurrentUser);
+ $DateObj->SetToNow;
-+ my $value = $DateObj->RFC2822;
++ my $value = $DateObj->ISO(Timezone => 'user');
+ my ($ret, $msg) = $self->TicketObj->AddCustomFieldValue(Field => $self->Argument, Value => $value);
+ unless ($ret) {
+ RT->Logger->error($msg);
More information about the rt-commit
mailing list