<p dir="ltr">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.</p>
<p dir="ltr">At any rate, the debug output is indicating a problem even before that point.</p>
<div class="gmail_quote">On 18/06/2014 5:28 am, "Kevin Falcone" <<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Jun 10, 2014 at 12:21:35PM +1000, Alex Peters wrote:<br>
> my $due_date = RT::Date->new($RT::SystemUser);<br>
> $due_date->Set(<br>
>   Value   => '11am Wednesday',<br>
>   Format  => 'unknown',<br>
> );<br>
> my $ticket = RT::Ticket->new($RT::SystemUser);<br>
> $ticket->Create(<br>
>   Queue   => '<queue name>',<br>
>   Subject => '<ticket title>',<br>
>   Due     => $due_date,<br>
> );<br>
<br>
Ticket->Create doesn't consume an RT::Date object, it expects ISO in<br>
the user's timezone.  Running your code as provided, I get no Due<br>
Date and<br>
[63270] [Tue Jun 17 19:26:57 2014] [warning]: Couldn't parse date<br>
'RT::Date=HASH(0x7fbd94003618)' as a ISO format (lib/RT/Date.pm:209)<br>
<br>
I'm guessing something else is setting your Due date.<br>
<br>
-kevin<br>
<br>--<br>
RT Training - Boston, September 9-10<br>
<a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/training</a><br></blockquote></div>