That was just a transcribing error on my part. I call a method on the RT::Date object to get the date out in the expected format; a later message in this thread shows the corrected code.
At any rate, the debug output is indicating a problem even before that point. On 18/06/2014 5:28 am, "Kevin Falcone" <falc...@bestpractical.com> wrote: > 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 > > -- > RT Training - Boston, September 9-10 > http://bestpractical.com/training >
-- RT Training - Boston, September 9-10 http://bestpractical.com/training