Re: How to set time zone permanently

From: Pam Wampler <Pam_Wampler(at)taylorwhite(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pam Wampler <Pam_Wampler(at)taylorwhite(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: How to set time zone permanently
Date: 2002-02-20 15:50:27
Message-ID: 2E4528861499D41199D200A0C9B15BC0012F46A8@taylorwhite.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks Tom That worked !!! I added /etc/TIMEZONE & put TZ=EST export TZ in
that file

then in /etc/profile I added

#prw added 2/20/2002 for timezone
# Set the TIMEZONE

if [ -r /etc/TIMEZONE ]
then
. /etc/TIMEZONE

then logged out as postgres user & back in & stopped & restarted using
pg_ctl

and did show time zone & it said EST

thanks & thanks to this wonderful messaging -- you guys are terrific to help
out like this

Pam
-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Wednesday, February 20, 2002 10:40 AM
To: Pam Wampler
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] How to set time zone permanently

Pam Wampler <Pam_Wampler(at)taylorwhite(dot)com> writes:
> Where do I & how do I permanently set the time zone?

I think best/only way right now is to set the TZ environment variable
before starting the postmaster. The TimeZone variable ought to be
settable from postgresql.conf, but for some reason it's not there now.

BTW, if the system default timezone is not already the way you want it,
you might consider making it so rather than putting a special hack into
the Postgres start script. This usually involves creating or changing
a configuration file somewhere under /etc ...

regards, tom lane

Browse pgsql-admin by date

  From Date Subject
Next Message Gaetano Mendola 2002-02-20 17:05:00 Postgresql 7.2 on Red-hat 7.1
Previous Message Tom Lane 2002-02-20 15:40:15 Re: How to set time zone permanently