On Tue, Jun 10, 2014 at 12:21:35PM +1000, Alex Peters wrote: > my $due_date = RT::Date->new($RT::SystemUser); > $due_date->Set( > Value => '11am Wednesday', > Format => 'unknown', > ); > my $ticket = RT::Ticket->new($RT::SystemUser); > $ticket->Create( > Queue => '<queue name>', > Subject => '<ticket title>', > Due => $due_date, > );
Ticket->Create doesn't consume an RT::Date object, it expects ISO in the user's timezone. Running your code as provided, I get no Due Date and [63270] [Tue Jun 17 19:26:57 2014] [warning]: Couldn't parse date 'RT::Date=HASH(0x7fbd94003618)' as a ISO format (lib/RT/Date.pm:209) I'm guessing something else is setting your Due date. -kevin
pgpiEXgt_nS0o.pgp
Description: PGP signature
-- RT Training - Boston, September 9-10 http://bestpractical.com/training