From: David Johnston <polobo@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Having a hard time understanding time zone
Date: Sun, 6 Apr 2014 15:01:10 -0700 (PDT)
Message-ID: <1396821670554-5798921.post@n5.nabble.com> (raw)
In-Reply-To: <CAAXGW-yLEavhB-Asex8_KEutgEHH5zPMEksgOF0JPieQrTXrWA@mail.gmail.com>
References: <CAAXGW-yLEavhB-Asex8_KEutgEHH5zPMEksgOF0JPieQrTXrWA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Robert DiFalco wrote
> But oddly both set the date field to the localized time in Java and not
> the
> UTC time.
Likely what you are seeing is the fact that most client libraries, when
given a timestamptz, display the result to the user in their local timezone.
PostgreSQL only stores the normalized UTC time and doesn't even know after
the fact what the originally specified timezone was.
If you specify the value correctly it shouldn't matter whether the
transmitted value is UTC or Siberian time since ultimately all you are
sending is an point-in-time value with units which can be transformed to
other units based upon timezone rules.
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Having-a-hard-time-understanding-time-zone-tp5798914p5798921...
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: <1396821670554-5798921.post@n5.nabble.com>
References: <CAAXGW-yLEavhB-Asex8_KEutgEHH5zPMEksgOF0JPieQrTXrWA@mail.gmail.com> <1396821670554-5798921.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