From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Danny Armstrong <detarmstrong(at)visiontree(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: YTA Time Zone Question |
Date: | 2007-04-06 17:15:35 |
Message-ID: | 14723.1175879735@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Danny Armstrong <detarmstrong(at)visiontree(dot)com> writes:
> What am I misunderstanding and how do I get it to interpret the value as
> utc and then not offset it when I view it, like python and ruby do?
What you're misunderstanding is that you messed up the data when you put
it into the database, probably by having a timezone setting *at that
time* that didn't agree with what your source application expected.
If the application sends timestamp strings that don't explicitly include
a timezone identifier, PG will assume that they are in the zone
identified by TimeZone, and in any case it will then convert the time
to UTC for storage.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-04-06 17:21:48 | Re: 8.2.3 AutoVacuum not running |
Previous Message | Tom Lane | 2007-04-06 17:11:17 | Re: How to suppress NOTICE messages |