pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Cook <awhig@yahoo.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: imad <immaad@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug in TimestampUtils.java?
Date: Fri, 10 Nov 2006 08:19:40 -0800 (PST)
Message-ID: <20061110161940.19582.qmail@web60222.mail.yahoo.com> (raw)

Oliver,

Below is the debug output from TimestampUtils.java

It parses the date string that says -05 into an -0400 Date object.

Rich


Date String: 2006-10-29 23:00:00-05

debug output ---> Parsed date '2006-10-29 23:00:00-05' in zone America/New_York as 2006-10-29 AD 00:00:00 -0400 (millis=1162094400000)



----- Original Message ----
From: Oliver Jowett <oliver@opencloud.com>
To: Richard Cook <awhig@yahoo.com>
Cc: imad <immaad@gmail.com>; pgsql-jdbc@postgresql.org
Sent: Friday, November 10, 2006 1:20:05 AM
Subject: Re: [JDBC] Bug in TimestampUtils.java?

Richard Cook wrote:

> If you look at the source code for the postgres jdbc driver, it 
> retrieves the column as a string, then uses the TimeStampUtils class to 
> create a date or timestamp out of it. I think the driver is incorrectly 
> setting the timezone when it creates the Date object.

I missed the original post here, but if you retrieve the result as a 
String what do you get? (the exact value please) .. and how does that 
compare to the Date you get?

-O






view thread (8+ messages)  latest in thread

Message-ID: <20061110161940.19582.qmail@web60222.mail.yahoo.com>
Permalink:  ../20061110161940.19582.qmail@web60222.mail.yahoo.com/
Also on:    postgresql.org/message-id/20061110161940.19582.qmail@web60222.mail.yahoo.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: awhig@yahoo.com, oliver@opencloud.com, immaad@gmail.com
  Subject: Re: Bug in TimestampUtils.java?
  In-Reply-To: <20061110161940.19582.qmail@web60222.mail.yahoo.com>
  References: <20061110161940.19582.qmail@web60222.mail.yahoo.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