From: | Blake Crosby <me(at)blakecrosby(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Time Zone Query |
Date: | 2001-01-05 03:12:47 |
Message-ID: | 5.0.2.1.2.20010105140727.01a4a2a8@home.samurai.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
At 12:09 PM 4/01/2001 -0500, you wrote:
>No, the times in the database are all GMT. They will get *displayed*
>with some particular timezone offset, as determined by the TIMEZONE
>SET variable.
>
>You have to set TIMEZONE to your local timezone if you want dates
>displayed in something other than the server's default timezone.
>Perhaps what you are really looking for is the PGTZ environment
>variable. If you keep PGTZ set in your environment, libpq will issue
>the SET TIMEZONE command for you during connection startup.
>
> regards, tom lane
After further investigation it turns out I am looking for a timestamp and
timetz hybrid. Possibly timestamptz ? :)
My solution has been to store the timezone offset in a int4 field, then
apply that offset when selecting data from my timestamp type fields.
Regards,
Blake Crosby
From | Date | Subject | |
---|---|---|---|
Next Message | Lincoln Yeoh | 2001-01-05 03:16:17 | Synchronous LISTEN/NOTIFY? |
Previous Message | Gregory Wood | 2001-01-05 03:11:31 | Re: Test for existence of Table |