|
|||||||||||
|
Re: [JDBC] Timestamps without time zone
From: Achilleas Mantzios <achill(at)matrix.gatewaynet.com>
Date: Thu Jan 10 2008 - 03:14:22 EST
I tried other apps with the new postgresql-8.2-507.jdbc3.jar and some of them break. So i will need to live with the 7.4.19 driver for a while. One question, is there a way to get a hold of the Default TimeZone instance of the JVM (lets call it default_TZ) and put all code that alter it in some sort of
synchronized (default_TZ) {
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
// jdbc calls here that deal with timestamps without time zone
java.util.TimeZone.setDefault(null);
}
block? Any date/time/Calendar operation in java effectively tries to access the default TimeZone. So, the above would make the system work perfectly from a correctness point of view (losing in parallelism of course) as a workaround until we upgrade to 8.x when ofcourse i will have to rewrite all portions of code (among others) that deal with timestamps without time zone. What do you think? > > Kris Jurka > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly
--
Achilleas Mantzios
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
Received on Thu Jan 10 03:18:20 2008This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:42:32 EDT |
||||||||||
|
|||||||||||