time zone setting.

From: dexdyne <from_postgresql_forum(at)dexdyne(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: time zone setting.
Date: 2011-08-24 10:25:31
Message-ID: 1314181531882-4729960.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I have played about a bit with time zones, and think I am getting a grip on
them.

If I use PgAdmin to submit queries, I can put

set time zone 'us/hawaii';

in front of some other queries, and they will operate as I expect. In fact I
find the change persist across multiple PgAdmin queries, so it is obviously
a "session setting"

I'm aware that I can change the JVM timezone suing setdefault.

But I can't put the "set time zone" stretring on the front of a jdbc
preparedStatement - it just barfs.

So the question is - can I, from a java program, set the time zone for the
database [ not for the jvm ].

--
View this message in context: http://postgresql.1045698.n5.nabble.com/time-zone-setting-tp4729960p4729960.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Maciek Sakrejda 2011-08-24 17:27:37 Re: time zone setting.
Previous Message Bodor Andras 2011-08-23 19:23:37 Re: JDBC SSL hostname verification