Re: [QUESTIONS] Accessing Postgresfrom JBuilder using JDBC

From: Peter T Mount <postgresdev(at)maidast(dot)demon(dot)co(dot)uk>
To: Patrick Scott Pierce <pspierce(at)slacker(dot)design(dot)mindspring(dot)net>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [QUESTIONS] Accessing Postgresfrom JBuilder using JDBC
Date: 1998-03-24 19:41:53
Message-ID: Pine.LNX.3.95.980324193844.10621A-100000@maidast
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

On Tue, 24 Mar 1998, Patrick Scott Pierce wrote:

> It would seem that the Timestamp in the getTimestamp method in
> ResultData.java is adding three hours to the time. I hacked it up and
> simply parsed up what was coming in, created a new Timestamp and it still
> added one hour. I then subtract a single hour but this is not the best
> solution although it works and I can now save Timestamps back to the
> database.

I have come across this before. If you look at the driver source, you'll
see a hack which adds a day when creating a Date object. It's caused by an
obscure bug in the JDK (seen it in 1.1.3 & 1.1.5)

> PS. This thread should probably move over to the interfaces list.

Good idea.

--
Peter T Mount petermount(at)earthling(dot)net or pmount(at)maidast(dot)demon(dot)co(dot)uk
Main Homepage: http://www.demon.co.uk/finder
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter(at)maidstone(dot)gov(dot)uk

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message llestat 1998-03-24 21:14:00 PGAccess
Previous Message Pierre Habraken 1998-03-24 14:40:46 Re: [QUESTIONS] Accessing Postgres from JBuilder using JDBC