pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: emergency.shower@gmail.com <emergency.shower@gmail.com>
To: Christian Cryder <c.s.cryder@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: Timestamp Summary
Date: Tue, 26 Jul 2005 00:51:58 +0200
Message-ID: <bdf1a09805072515515f30d261@mail.gmail.com> (raw)
In-Reply-To: <90876a9e050725094560a4aa6a@mail.gmail.com>
References: <90876a9e050725094560a4aa6a@mail.gmail.com>

On 7/25/05, Christian Cryder <c.s.cryder@gmail.com> wrote:
> [...]
> This piece of code only needs to get executed when the connection is
> first opened to the DB, and from that point on it will ensure that the
> db is in functionally the same timezone as the server (taking DST
> on/off into account as well). In other words, if my client is running
> in MST w/ DST turned off, the server will be configured to etc/gmt+7,
> and any dates I insert will be left untouched.
> 
> That make sense?

Hi Christian,

Besides setTimestamp(int, Timestamp) and getTimestamp(int) we have the
more general methods setTimestamp(int, Timestamp, Calendar) and
getTimestamp(int, Calendar).

If I understand the specs correctly, calls to the methods without a
Calendar parameter should be equivalent to the call to the other
methods with a Calendar that has time zone TimeZone.getDefault().



view thread (15+ messages)  latest in thread

Message-ID: <bdf1a09805072515515f30d261@mail.gmail.com>
Permalink:  ../bdf1a09805072515515f30d261@mail.gmail.com/
Also on:    postgresql.org/message-id/bdf1a09805072515515f30d261@mail.gmail.com

 · 

reply

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: emergency.shower@gmail.com, c.s.cryder@gmail.com
  Subject: Re: Timestamp Summary
  In-Reply-To: <bdf1a09805072515515f30d261@mail.gmail.com>
  References: <90876a9e050725094560a4aa6a@mail.gmail.com> <bdf1a09805072515515f30d261@mail.gmail.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