Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YQLIS-0005jt-2i for pgsql-general@arkaria.postgresql.org; Tue, 24 Feb 2015 19:37:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YQLIR-0007ZH-66 for pgsql-general@arkaria.postgresql.org; Tue, 24 Feb 2015 19:37:31 +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 1YQLIO-0007Z0-Nm for pgsql-general@postgresql.org; Tue, 24 Feb 2015 19:37:28 +0000 Received: from mbx.knossos.net.nz ([202.160.48.10]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YQLI9-0003Uq-QE for pgsql-general@postgresql.org; Tue, 24 Feb 2015 19:37:25 +0000 Received: from [10.1.1.3] (121-99-179-57.bng1.nct.orcon.net.nz [121.99.179.57]) (authenticated bits=0) by mbx.knossos.net.nz (8.14.4/8.14.4) with ESMTP id t1OJak4V026372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 25 Feb 2015 08:36:46 +1300 Message-ID: <54ECD2CE.50701@archidevsys.co.nz> Date: Wed, 25 Feb 2015 08:36:46 +1300 From: Gavin Flower Organization: ArchiDevSys User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Adrian Klaver , 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> In-Reply-To: <54EC98EA.2030701@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 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! :-) -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general