[rt-users] LocalTimezone problem with default queue due (Solved)

Stephen Fung stephen at hknet.com
Tue Feb 22 03:55:19 EST 2005


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();
}



Stephen Fung wrote:
> My local timezone is Hongkong(GMT+8) and I've set it in my 
> RT_SiteConfig.pm.
> 
> My problem is, I set the due day of a queue to 7 days and when I am 
> trying to create a ticket using the web GUI, the 'Due' field is set to 
> "CurrentTime + 7 days - 8 hours". (e.g. my local time is now Feb 22 2005 
> 14:44, but the due day will be appeared as Mar 1 2005 06:44).
> 
> Anyone has the same problem? Anyone know how to fix it?
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> RT Administrator and Developer training is coming to your town soon! 
> (Boston, San Francisco, Austin, Sydney) Contact 
> training at bestpractical.com for details.
> 
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> 



More information about the rt-users mailing list