Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 79CE1B5DC04 for ; Wed, 24 Aug 2011 07:43:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 35701-07 for ; Wed, 24 Aug 2011 10:43:10 +0000 (UTC) X-Greylist: delayed 00:17:38.2852 by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id A00B0B5DBDC for ; Wed, 24 Aug 2011 07:43:10 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QwAeJ-00061r-Si for pgsql-jdbc@postgresql.org; Wed, 24 Aug 2011 03:25:31 -0700 Date: Wed, 24 Aug 2011 03:25:31 -0700 (PDT) From: dexdyne To: pgsql-jdbc@postgresql.org Message-ID: <1314181531882-4729960.post@n5.nabble.com> Subject: time zone setting. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201108/69 X-Sequence-Number: 22101 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.