pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wei Wei <wei725@lycos.com>
To: pgsql-jdbc@postgresql.org
Subject: Calendar vs. Timestamp
Date: Tue, 11 Apr 2006 09:28:44 -0800
Message-ID: <20060411172844.7305786B12@ws7-1.us4.outblaze.com> (raw)

I move this issue from the general mailing list. Here is my problem:

In the Java application, I create a Calendar object and the getTime and getTimeZone return the following values:

* Sun Apr 09 12:40:52 PDT 2006 
* Pacific Standard Time

The Calendar object is matched to the timestamp with time zone data type throught Hibernate. And the above data is stored as the following:

2006-04-09 14:40:53.093-07

That is not correct. The command of "select now()" returns a correct value. The PG version is 8.0.x and the jdbc version is 8.0.309.jdbc3. Is it a bug in the driver? 


Thanks.

-- 
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10




view thread (5+ messages)  latest in thread

Message-ID: <20060411172844.7305786B12@ws7-1.us4.outblaze.com>
Permalink:  ../20060411172844.7305786B12@ws7-1.us4.outblaze.com/
Also on:    postgresql.org/message-id/20060411172844.7305786B12@ws7-1.us4.outblaze.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: wei725@lycos.com
  Subject: Re: Calendar vs. Timestamp
  In-Reply-To: <20060411172844.7305786B12@ws7-1.us4.outblaze.com>
  References: <20060411172844.7305786B12@ws7-1.us4.outblaze.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