Timestamp/Timezone - does this make sense?

From: Mike Harding <mharding(at)edentreetech(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Timestamp/Timezone - does this make sense?
Date: 2007-02-13 03:38:29
Message-ID: 1171337909.59358.17.camel@mvh.et.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

mvh=> set time zone 'UTC';
SET
mvh=> select now();
now
-------------------------------
2007-02-13 03:37:35.660652+00
(1 row)

mvh=> select timestamp with time zone '2007-01-01' at time zone
'America/Los_Angeles';
timezone
---------------------
2006-12-31 16:00:00
(1 row)

mvh=> select timestamp '2007-01-01' at time zone 'America/Los_Angeles';
timezone
------------------------
2007-01-01 08:00:00+00
(1 row)

Where does that extra 8 hours come from?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-02-13 03:46:02 Re: Dumb question - how to tell if autovacuum is doing its job in 8.2.x
Previous Message Tom Lane 2007-02-13 02:52:28 Re: Still unclear about PQexecParams and "create view"