From: David Johnston <polobo@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Having a hard time understanding time zone
Date: Tue, 8 Apr 2014 15:25:28 -0700 (PDT)
Message-ID: <1396995928654-5799284.post@n5.nabble.com> (raw)
In-Reply-To: <1396824511192-5798924.post@n5.nabble.com>
References: <CAAXGW-yLEavhB-Asex8_KEutgEHH5zPMEksgOF0JPieQrTXrWA@mail.gmail.com>
<CADK3HHL_B+sM46LCBAs1c4MnKuFYKbgGOR5DHhK52-BXQfyqWg@mail.gmail.com>
<1E80E3BD-947B-4598-9587-60BDFEE1CF46@gmail.com>
<1396824511192-5798924.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Re-posting, see quote
David Johnston wrote
>
> Robert DiFalco wrote
>> Well I feel a little crazy. But this is what I see. I have a timestamp
>> without time zone column with a default value of current_timestamp. In
>> PSQL I can see this value yields a UTC value. But when I insert from JDBC
>> (not setting that column) and then look at the value with PSQL I see a
>> PDT value?! That is my JVM zone. When I get back to the office on Monday
>> I'll try to create a test case.
> If you have a "timestamp without time zone" then you are missing the whole
> point. Specifically "if I look at the value with psql I see a PDT value"
> is technically impossible since you already told the system that you don't
> give a shit about the timezone. What you are seeing is a time string that
> you mentally interpret (or client timezone gets associated with) to be
> PDT. Use timestamp with time zone and you'll likely find yourself much
> less confused.
>
> Also, read this:
> http://www.depesz.com/2014/04/04/how-to-deal-with-timestamps/
>
> David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Having-a-hard-time-understanding-time-zone-tp5798914p5799284...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: polobo@yahoo.com
Subject: Re: Having a hard time understanding time zone
In-Reply-To: <1396995928654-5799284.post@n5.nabble.com>
References: <CAAXGW-yLEavhB-Asex8_KEutgEHH5zPMEksgOF0JPieQrTXrWA@mail.gmail.com> <CADK3HHL_B+sM46LCBAs1c4MnKuFYKbgGOR5DHhK52-BXQfyqWg@mail.gmail.com> <1E80E3BD-947B-4598-9587-60BDFEE1CF46@gmail.com> <1396824511192-5798924.post@n5.nabble.com> <1396995928654-5799284.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox