[request-tracker-maintainers] Bug#498124: Bug#498124: request-tracker3.6: dynamical timezone
Niko Tyni
ntyni at debian.org
Sun Sep 7 19:34:42 UTC 2008
tag 498124 confirmed patch
thanks
On Sun, Sep 07, 2008 at 01:09:07PM +0200, Jan Korbel wrote:
> Package: request-tracker3.6
> Version: 3.6.7-2
> I have almost clean installation of request tracker 3.6 inside lenny. My
> configuration is mod_fastcgi and Apache2. If i don't set timezone
> locally (90-local), timezone is broken and i have UTC time in web
> interface.
Thanks for reporting this!
I could have sworn I tested this better, but it's indeed broken.
Apparently the output of 'date +%Z' isn't applicable for a TZ
environment value after all.
I think looking at /etc/timezone and falling back to UTC is the best
thing to do.
> from 40-timezone. And run update-rt-siteconfig, of course. I tried
> change command to `/bin/cat /etc/timezone` but it's same.
That's because there's a newline at the end. Something like this works
for me:
my $zone = "UTC";
$zone=`/bin/cat /etc/timezone`
if -f "/etc/timezone";
chomp $zone;
Set($Timezone, $zone);
I'll try to get this into lenny.
--
Niko Tyni ntyni at debian.org
More information about the pkg-request-tracker-maintainers
mailing list