Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YQLd4-0006uZ-1m for pgsql-general@arkaria.postgresql.org; Tue, 24 Feb 2015 19:58:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YQLd2-0004yp-5B for pgsql-general@arkaria.postgresql.org; Tue, 24 Feb 2015 19:58:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YQLd0-0004yi-Nv for pgsql-general@postgresql.org; Tue, 24 Feb 2015 19:58:46 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YQLcw-0003tm-7e for pgsql-general@postgresql.org; Tue, 24 Feb 2015 19:58:45 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CD70D21524 for ; Tue, 24 Feb 2015 14:58:37 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Tue, 24 Feb 2015 14:58:38 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= x-sasl-enc:message-id:date:from:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=xXRhoSwD4GIqcNYyevTMwMF23MQ=; b=MZE0YmQ8l1M1euFBmf dXkCzV7iii0n4AAekew29SEOE3VMEH+GitOBv/SOcuCi/heHQrnhL32oto9j27X8 Z/4fFF7lYgS4zDVGGTG0QJeH9+ayIAy8NPqPmp5amg938TUZNrJdounpegzf4mbA bPWyX3f/zJMYjRijVdTcuztL0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:message-id:date:from :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=xXRhoSwD4GIqcNYyevTMwM F23MQ=; b=ThBRUHbzvdo7OTrxyFGp5/G18f0YCSNFqD8kO6yquIbnwhfaq04tnm jOcRmaJBzMZuh5ASy0PrpKkNFRj6wK08j6Ek1YqSxdNQL5bZDb2tfUeU/9dSCshJ 2xGTa2IY8IOapC1s5bNvoZsln8360ueZ2lAgxMSWKg3Qp0mTPR9UI= X-Sasl-enc: 8gSH9jC5B1RpV4HnfxNkyT+UCUh+8ZAVqOIpsenVGVN/ 1424807918 Received: from killi.site (unknown [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id D05F0C002A7; Tue, 24 Feb 2015 14:58:37 -0500 (EST) Message-ID: <54ECD7ED.30607@aklaver.com> Date: Tue, 24 Feb 2015 11:58:37 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Gavin Flower , George Woodring CC: Tom Lane , Dave Cramer , pgsql-general Subject: Re: SQL solution for my JDBC timezone issue References: <31121.1424706593@sss.pgh.pa.us> <54EB8DA8.6060302@aklaver.com> <54EC98EA.2030701@aklaver.com> <54ECD2CE.50701@archidevsys.co.nz> In-Reply-To: <54ECD2CE.50701@archidevsys.co.nz> Content-Type: text/plain; charset=utf-8; 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-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On 02/24/2015 11:36 AM, Gavin Flower wrote: > On 25/02/15 04:29, Adrian Klaver wrote: >> On 02/24/2015 06:25 AM, George Woodring wrote: >>> -- In your original post you mentioned that access to the databases is >>> through a Web server. >>> >>> -- Is there just one Web server with one time zone? >>> >>> We have 2 web servers that are clustered together. They are both set to >>> Eastern since that is the timezone they are located in. >>> >> >> >> So: >> >> JDBC Web servers(US/East) <---> 90 database (5 different timezones) >> >> Therefore everything to the end user is passed through the Web servers? >> >> Is there a reason why the databases have different timezones? >> >> Seems to me less complicated to have all the databases share the UTC >> timezone. Then you only have one offset, US/East <--> UTC. >> >>> iGLASS Networks >>> www.iglass.net >>> >>> >> >> > Yes I think it sanest to have servers use GMT*, as then it is simple > enough to convert results to whatever local time zone the client is in. > > I live in New Zealand, and we are offset from GMT about 12 hours (depend > on seasonal adjustments). Have no problem getting query results using > my local time zone automatically. - regardless of whether I query from > the database box or another, using psql! > > > Cheers, > Gavin > > > *UTC or whatever it is currently fashionable to call it! :-) Depends on which side of the Channel you want to make happy:) -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general