Kevin,<br><br>I don't understand. The CF is a "Select date" and th3e code is as follows:<br><br># re-set the CF "Work-Completed Date" if it exists<br><br>my $ticket = $self->TicketObj;<br>my $trans = $self->TransactionObj;<br>
my $cf_obj = RT::CustomField->new($RT::SystemUser);<br>my $new_value = 0;<br>my $cf_name = "Work-Completed Date";<br>my $Completed_Date = $ticket->FirstCustomFieldValue('Work-Completed Date');<br><br>
if  ($Completed_Date)<br>    {<br>     $cf_obj->LoadByName(Name=>$cf_name);<br>     $RT::Logger->debug("Loaded\$cf_obj->Name = ". $cf_obj->Name() ."\n");<br>     $ticket->AddCustomFieldValue(Field=>$cf_obj, Value=>$new_value, RecordTransaction=>0);<br>
    }<br><br>I'm not sure what it is I should do differently.<br><br>Thanks.<br><br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Mon, Aug 30, 2010 at 9:57 AM, Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Mon, Aug 30, 2010 at 09:15:17AM -0700, Kenneth Crocker wrote:<br>
>    The code doesn't blow up (with a simple 0), but I get 1970 on all my search results. I need to<br>
>    get rid of that somehow. Any ideas? Thanks.<br>
</div><div class="im">> >      0 should be fine, depends on how you're setting the date<br>
<br>
</div>The key part of my statement is "Depends on how you're setting the<br>
date"<br>
<font color="#888888"><br>
-kevin<br>
</font><br><br>
RT Training in Washington DC, USA on Oct 25 & 26 2010<br>
Last one this year -- Learn how to get the most out of RT!<br></blockquote></div><br>