[rt-users] ticket created from CLI script with wrong Due date; timezone issue?

Alex Peters alex at peters.net
Wed Jun 18 21:25:52 EDT 2014

The code posted in my original message, minus the $ticket->Create call,
generates debug output showing the problem independent of ticket creation.
In that message I've highlighted the  discrepancies in that debug output in
red.  Your comments on that specific output would be greatly appreciated.

I don't believe that the date/time configuration options are relevant,
because I'm explicitly specifying "11am Wednesday" in an RT::Date->Set call
and getting an epoch for "11am Tuesday."  My timezone is not offset from
GMT by 24 hours.

I want to be able to enter freeform text and have it interpreted relative
to the RT-configured timezone, hence my use of RT::Date.
On 19/06/2014 5:38 am, "Kevin Falcone" <falcone at bestpractical.com> wrote:

> On Wed, Jun 18, 2014 at 10:53:11AM +1000, Alex Peters wrote:
> > 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.
> If you have a reduced sample that doesn't require Ticket->Create to
> expose, show that, probably with some debugging output so it can be
> run locally.  Additionally, you may want to look into the config,
> there are relevant parsing options around 'Wednesday'.
> http://bestpractical.com/docs/rt/latest/RT_Config.html#Date-and-time-handling
> In addition, keep in mind the timezone of the user used to create the
> date object and how that plays into this.
> And remember, RT in no way requires you to use an RT::Date to
> calculate Wednesday at 11am.  This is perl, there are about 50 ways to
> do it.
> -kevin
> --
> RT Training - Boston, September 9-10
> http://bestpractical.com/training
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140619/d2c35ee8/attachment.html>

More information about the rt-users mailing list