[rt-users] LocalTimezone problem with default queue due (Solved)
Russell Mosemann
mose at ns.cune.edu
Tue Feb 22 10:53:07 EST 2005
On Tue, 22 Feb 2005, Stephen Fung wrote:
> I eventually modify the line in <RT>/share/html/Ticket/Create.html as
> following to solve it:
>
>
> if ($QueueObj->DefaultDueIn && !$ARGS{'Due'}) {
> my $default_due = RT::Date->new($session{'CurrentUser'});
> $default_due->SetToNow();
> $default_due->AddDays($QueueObj->DefaultDueIn);
>
> # $ARGS{'Due'} = $default_due->ISO(); # Original code
>
> $ARGS{'Due'} = $default_due->AsString();
> }
Good catch. The problem above is a bug. ISO dates are stored in the
database, but dates for the user are in local time. The original line
makes the default date (which the user enters) ISO, and it gets ISO'ed,
again, when stored in the database.
----
Russell Mosemann, Ph.D. * Computing Services * Concordia University, Nebraska
"A no-smoking section in a restaurant is like a no-peeing
section in a swimming pool."
More information about the rt-users
mailing list