[rt-users] Problem configuring RT Timezone
bill.melotti at mblox.com
Thu Jul 4 03:07:52 EDT 2013
I had the same problem, RT 3.8.11. The problem is in rt/lib/RT/Date.pm,
function Localtime (line 971 for me)
The call to localtime ( @local = localtime($unix); ) just doesn't work,
always returning effectively same as gmtime. All the parameters are correct.
I instead wrote a function using DateTime perl module. However there was a
name clash with a function in the RT file called DateTime and despite there
being code elsewhere in this file that claimed to make use of DateTime
module, I couldn't get it to work.
So I wrote my own wrapper module exporting function 'xxLocaltime' (so I
could find it easily again in future) which had to go in rt/local/lib. This
was able to create DateTime objects, fake the action of localtime perl
builtin and now it works correctly.
Two final notes, there seems to be some problems with the formatting, so I
always choose the system default via the web GUI even though I don't like it
and I am using mod_perl, but no idea what version, I don't know how you can
find that out.
View this message in context: http://requesttracker.8502.n7.nabble.com/Problem-configuring-RT-Timezone-tp43488p54555.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.
More information about the rt-users