[rt-users] Wrong due date output, related to "SetToMidnight" ?
Ruslan Zakirov
ruslan.zakirov at gmail.com
Thu Aug 20 10:15:47 EDT 2009
Hello David,
Plain ->Due returns datetime in UTC. You have to use ->DueObj and some
formatter described in RT::Date.
On Thu, Aug 20, 2009 at 4:29 PM, David<fooraide at gmail.com> wrote:
> Hi,
>
> I have a scrip that triggers a template in which the due date of the
> ticket is displayed.
> In the template, I output the due date as such:
>
> This ticket is due in {$Ticket->Due}.
>
> Now, this works properly unless the due date is exactly midnight (00:00:00).
> I would expect to have the right due date in the ticket.. but instead,
> I get 04:00:00.
>
> After looking through the doc, I see that this could be due to
> SetToMidnight which uses GMT rather than the local server time.
>
> Is there some way to fix this ? We'd like to have tickets that are due
> on midnight as we have a 24/7 operation :)
>
> Thanks,
>
> David
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
--
Best regards, Ruslan.
More information about the rt-users
mailing list