X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A95C452AB3 for ; Wed, 20 Jul 2005 17:16:23 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53347-07 for ; Wed, 20 Jul 2005 20:16:22 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by svr1.postgresql.org (Postfix) with ESMTP id 1B9B852A8A for ; Wed, 20 Jul 2005 17:16:21 -0300 (ADT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j6KKGMM7020826 for ; Wed, 20 Jul 2005 16:16:22 -0400 Received: from mail.boston.redhat.com (mail.boston.redhat.com [172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j6KKGMV27685 for ; Wed, 20 Jul 2005 16:16:22 -0400 Received: from vpn83-147.boston.redhat.com (vpn83-147.boston.redhat.com [172.16.83.147]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j6KKGLll003197 for ; Wed, 20 Jul 2005 16:16:21 -0400 From: Vadim Nasardinov Organization: Red Hat / Westford To: pgsql-jdbc@postgresql.org Subject: Re: Java's set of timezone names Date: Wed, 20 Jul 2005 16:20:41 -0400 User-Agent: KMail/1.7.1 References: <90876a9e05071810503606d431@mail.gmail.com> <200507201510.28661@vadim.nasardinov> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507201620.41623@vadim.nasardinov> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/198 X-Sequence-Number: 13346 On Wednesday 20 July 2005 15:42, Dave Cramer wrote: > I think as John pointed out though there are some issues with using > named TimeZones. Kris rebutted that comment. > Is there a way to get the servers timezone info from the server ? Good question. Based upon a very cursory reading of the documentation, it seems to be that PostgreSQL uses a hardcoded internal list of time zones for dealing with timezone *input*, but it uses the underlying OS's facilities for dealing with timezone *output*. But then again, the docs seems to have changed between 7.4 and 8.0. For example, in 7.4: http://www.postgresql.org/docs/7.4/static/datatype-datetime.html PostgreSQL uses your operating system's underlying features to provide output time-zone support, However, this sentence seems missing from 8.0: http://www.postgresql.org/docs/8.0/static/datatype-datetime.html The docs for 7.4 provide a list of timezone abbreviations that PostgreSQL recognizes: http://www.postgresql.org/docs/7.4/static/datetime-keywords.html The 8.0 docs, too, provide the list of abbreviations but also a list of unabbreviated timezone names: http://www.postgresql.org/docs/8.0/static/datetime-keywords.html These seem to be hardcoded.