Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrBq0-0002Aj-3o for pgsql-jdbc@arkaria.postgresql.org; Sun, 01 Jun 2014 19:54:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WrBpy-0006mN-MN for pgsql-jdbc@arkaria.postgresql.org; Sun, 01 Jun 2014 19:54:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WrBpx-0006m0-Ex for pgsql-jdbc@postgresql.org; Sun, 01 Jun 2014 19:54:33 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WrBpo-00072P-Bf for pgsql-jdbc@postgresql.org; Sun, 01 Jun 2014 19:54:30 +0000 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id A025320BAE for ; Sun, 1 Jun 2014 15:54:21 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sun, 01 Jun 2014 15:54:21 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=lkXHH1hf4Z5rDNYYXrnYZGIQ1RY=; b=hC1SExVGZgGqkTQk1NpotrU6eMcn u9oUVtnjbBB0UWzJKM5g48tEUIVPvE4s8ZW3H1OS1pgOl4AsJ/OZvmZsHM/fx67A uPuWvqfWF8+fs/yq2WwtJlhpiJLEadYHtgacapLAips07PcXvYxHcZBvvVqYENgR HCFqDX/Y1ifFnhk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=lkXHH1hf4Z5rDNYYXrnYZG IQ1RY=; b=HxdbKsmxAc3BFZDkUJgJR838QVyNyMdstbRmPDWqlVEiTDlyIdOIgk LNjTovmtr+8/aS8KpRI28cItcU4CiNpGxHEoBum4W5wS/Es3CUuV8YjAU1ddq69Y U7+PiG7iNUB+1zYkXyFHyUTuvYAeWxoJotHPTlULkcgMI5YgoernQ= X-Sasl-enc: 4/UPC5nv5JeZG2TuJwJdF2SLseOYQNOrIrUUj3qrH32s 1401652461 Received: from panda.site (unknown [65.102.186.57]) by mail.messagingengine.com (Postfix) with ESMTPA id 10BB2C007AD; Sun, 1 Jun 2014 15:54:20 -0400 (EDT) Message-ID: <538B84EC.6030207@aklaver.com> Date: Sun, 01 Jun 2014 12:54:20 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: David Wall , pgsql-general@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: [GENERAL] Upgrading from PG 8.3.3 to 9.3.4 - FATAL: invalid value for parameter "TimeZone": "PST" References: <538ACAFE.1050404@computer.org> <538ACC7D.9050302@hogranch.com> <538AD2C7.6080107@yozons.com> <538AD36A.3010002@computer.org> <538B4F3B.5070006@aklaver.com> <538B7404.7080601@computer.org> In-Reply-To: <538B7404.7080601@computer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 06/01/2014 11:42 AM, David Wall wrote: > > On 6/1/2014 9:05 AM, Adrian Klaver wrote: >> The JDBC code above, if I am following correctly, is picking up a >> default timezone of 'PST' and then in the first if returning that as >> the tz value to SET TimeZone in the startup packet. >> >> Two things. >> >> 1) Where is it getting PST from ? >> >> 2) Should the driver even be returning an abbreviation given that >> Postgres will not accept it as a TimeZone value? >> > > > Thanks for the extra help, Adrian. > > It led me to investigate the 35 webapps we deploy on Tomcat and I found > 2 rogue apps that set their timezone to "PST". Once I fixed these two, > all is working great again. > > I guess there's no bug, per se, except in our configuration. Once we > changed it to PST8PDT, all was good again. Not so much a bug as a misplaced error. Given that TimeZone does not accept abbreviations, it would seem that JDBC code should throw an exception at that point. It would not change the end result, but make it easier to determine where the error is occurring. In the long run it may be moot though, because of this: http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html Three-letter time zone IDs For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them. > > Thanks, > David > > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc