From: Oliver Jowett <oliver@opencloud.com>
To: Byron Nikolaidis <ByronN@Routescape.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Date problem on Aix jdk1.4.1
Date: Thu, 28 Jul 2005 11:37:15 +1200
Message-ID: <42E81AAB.8030005@opencloud.com> (raw)
In-Reply-To: <6E0907A94904D94B99D7F387E08C4F570732F0@FALCON.INSIGHT>
References: <6E0907A94904D94B99D7F387E08C4F570732F0@FALCON.INSIGHT>
Byron Nikolaidis wrote:
> Here is a really simple test:
> /usr/java14/bin/java -cp "/usr/insight/postgresql.jar:." DateTest
>
> id=1, effective=1122350400000 <--- correct
> id=2, effective=1122354000000 <--- +1 hour
> id=3, effective=1122354000000 <--- all same from here out
It seems ok under 1.4.2 on Linux, with driver build 310, in NZST:
id=1, effective=1122292800000
id=2, effective=1122292800000
id=3, effective=1122292800000
What timezone is the AIX box in exactly? Can you try a 1.4.2 JVM on there?
The only thing I can think of is some sort of Calendar modification
caused by the first getDate() is carrying over to subsequent calls (the
calendar used is shared between calls), but given that the only thing
that code really touches is the zone/dst offsets, and they're reset each
time, I'm not sure what exactly it would be.
You could try putting something like
System.err.println("calendar: " + cal);
in org.postgresql.jdbc2.TimestampUtils.toDate() around line 253, just
before the return, and see if there are any notable differences between
the first and second calls..
-O
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: oliver@opencloud.com, ByronN@Routescape.com
Subject: Re: Date problem on Aix jdk1.4.1
In-Reply-To: <42E81AAB.8030005@opencloud.com>
References: <6E0907A94904D94B99D7F387E08C4F570732F0@FALCON.INSIGHT> <42E81AAB.8030005@opencloud.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