[rt-users] re-set date field
kfcrocker at lbl.gov
Mon Aug 30 14:23:21 EDT 2010
I don't understand. The CF is a "Select date" and th3e code is as follows:
# re-set the CF "Work-Completed Date" if it exists
my $ticket = $self->TicketObj;
my $trans = $self->TransactionObj;
my $cf_obj = RT::CustomField->new($RT::SystemUser);
my $new_value = 0;
my $cf_name = "Work-Completed Date";
my $Completed_Date = $ticket->FirstCustomFieldValue('Work-Completed Date');
$RT::Logger->debug("Loaded\$cf_obj->Name = ". $cf_obj->Name() ."\n");
I'm not sure what it is I should do differently.
On Mon, Aug 30, 2010 at 9:57 AM, Kevin Falcone <falcone at bestpractical.com>wrote:
> On Mon, Aug 30, 2010 at 09:15:17AM -0700, Kenneth Crocker wrote:
> > The code doesn't blow up (with a simple 0), but I get 1970 on all my
> search results. I need to
> > get rid of that somehow. Any ideas? Thanks.
> > > 0 should be fine, depends on how you're setting the date
> The key part of my statement is "Depends on how you're setting the
> RT Training in Washington DC, USA on Oct 25 & 26 2010
> Last one this year -- Learn how to get the most out of RT!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rt-users