pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ken Johanson <pg-user@kensystem.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Timestamp without Timezone and differing client / server tzs
Date: Tue, 08 Jul 2008 22:08:56 -0600
Message-ID: <487439D8.2050508@kensystem.com> (raw)
In-Reply-To: <4873201F.1000700@opencloud.com>
References: <4873154E.6020808@kensystem.com>
	<4873201F.1000700@opencloud.com>

Oliver Jowett wrote:
> Ken Johanson wrote:
> 
>> Question: with ts without tz storage, should not a timestamp be 
>> normalized to the  servers implicit TZ (UTC in this case), since that 
>> is set in the config's client-tz?
> 
> If you don't specify a Calendar to setTimestamp, it's assumed you mean 
> the client JVM's default timezone (the same timezone that 
> Timestamp.toString() assumes).

.......

> If you want to interpret a Timestamp as being in a particular timezone, 
> use the getTimestamp()/setTimestamp() variants that take an explicit 
> Calendar.

So, short of passing a calendar to setTimezone, there is no other way to 
indicate to the driver that zone-less date/time type values should be 
translated to the server's different timezone, is this correct?

k





view thread (15+ messages)  latest in thread

Message-ID: <487439D8.2050508@kensystem.com>
Permalink:  ../487439D8.2050508@kensystem.com/
Also on:    postgresql.org/message-id/487439D8.2050508@kensystem.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: pg-user@kensystem.com, oliver@opencloud.com
  Subject: Re: Timestamp without Timezone and differing client / server tzs
  In-Reply-To: <487439D8.2050508@kensystem.com>
  References: <4873154E.6020808@kensystem.com> <4873201F.1000700@opencloud.com> <487439D8.2050508@kensystem.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