Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXeSV-0000rM-OO for pgsql-jdbc@arkaria.postgresql.org; Tue, 08 Apr 2014 22:25:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WXeSV-0000m6-5c for pgsql-jdbc@arkaria.postgresql.org; Tue, 08 Apr 2014 22:25:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXeSU-0000m0-KR for pgsql-jdbc@postgresql.org; Tue, 08 Apr 2014 22:25:34 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXeSP-00015k-C9 for pgsql-jdbc@postgresql.org; Tue, 08 Apr 2014 22:25:34 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WXeSO-0001wp-LH for pgsql-jdbc@postgresql.org; Tue, 08 Apr 2014 15:25:28 -0700 Date: Tue, 8 Apr 2014 15:25:28 -0700 (PDT) From: David Johnston To: pgsql-jdbc@postgresql.org Message-ID: <1396995928654-5799284.post@n5.nabble.com> In-Reply-To: <1396824511192-5798924.post@n5.nabble.com> References: <1E80E3BD-947B-4598-9587-60BDFEE1CF46@gmail.com> <1396824511192-5798924.post@n5.nabble.com> Subject: Re: Having a hard time understanding time zone MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 2.5 (++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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.html 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