Re: Timezone set to GMT?

Alex Hall <[email protected]>
Newsgroups gmane.comp.bug-tracking.request-tracker.user
Message-ID <CA+Q8_JdzNgvdxErU-BT5oq4-OApD_G_7d8gDp17aeMa3Po9fcA@mail.gmail.com>
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 <[email protected]>
wrote:

> On Nov 18, 2016, at 11:40 AM, Alex Hall <[email protected]> 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 ®
> 📧 [email protected]
> 🌍 www.internap.com
>
>


-- 
Alex Hall
Automatic Distributors, IT department
[email protected]

---------
RT 4.4 and RTIR training sessions, and a new workshop day! https://bestpractical.com/training
* Los Angeles - January 9-11 2017
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.