[rt-users] Timezone set to GMT?

Alex Hall ahall at autodist.com
Mon Nov 21 08:42:47 EST 2016


I'm using the RT default, which appears to pull the information from
/etc/timezone:

my $zone = "UTC";
$zone=`/bin/cat /etc/timezone`
    if -f "/etc/timezone";
chomp $zone;
Set($Timezone, $zone);

And /etc/timezone exists and is set correctly. I can just set the actual
value in this file, but I'm still not sure why this doesn't work.


On Sat, Nov 19, 2016 at 1:17 AM, Landon Stewart <lstewart at internap.com>
wrote:

> On Nov 18, 2016, at 11:40 AM, Alex Hall <ahall at autodist.com> wrote:
>
> Hi all,
> I have the timezone set in SiteConfig how it came by default, and
> /etc/timezone on my server is correct. Yet, I've just noticed that times in
> RT are GMT, not Eastern like they should be. I only just noticed this, but
> I'm told it has been an ongoing problem. That means I don't know what I
> might have changed, or when.
>
> Is there more to the timezone than letting RT pick it up from
> /etc/timezone? Do I need to worry about setting MySQL somehow? The file is
> 644, so is readable by everyone. Thanks.
>
>
> This is probably already set in the shipped configuration in
> etc/RT_Config.pm as follows but you can override it in etc/RT_SiteConfig.pm
>
>        $Timezone
>            $Timezone is the default timezone, used to convert times
> entered by users into GMT, as they are stored in the database, and back
> again;
>            users can override this.  It should be set to a timezone
> recognized by your server.
>
> eg:
> Set($Timezone, "US/Eastern");
>
> --
> Landon Stewart
> Lead Analyst - Abuse and Security Management
> INTERNAP ®
> 📧 lstewart at internap.com
> 🌍 www.internap.com
>
>


-- 
Alex Hall
Automatic Distributors, IT department
ahall at autodist.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20161121/a8a93598/attachment.html>


More information about the rt-users mailing list