pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: George Woodring <george.woodring@iglass.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: SQL solution for my JDBC timezone issue
Date: Tue, 24 Feb 2015 11:58:37 -0800
Message-ID: <54ECD7ED.30607@aklaver.com> (raw)
In-Reply-To: <54ECD2CE.50701@archidevsys.co.nz>
References: <CACi+J=S96EmLRhqGY4EYUc7vEvrx_KTQJdvT9sE1xA8SvWT69Q@mail.gmail.com>
	<CADK3HHJLbxfGuEpeQ6tGpFp2GGQCT8PcdepjAmSU9KMV_AKNEA@mail.gmail.com>
	<CACi+J=SHZJTjVG_pgjhHnttvK3aKqYG-CBO8wLDBtW07XbUbiw@mail.gmail.com>
	<31121.1424706593@sss.pgh.pa.us>
	<CACi+J=Sp1yFe-GsGO2Cxp3G1w7X38hkEeLdKk381AHuqYPeuSA@mail.gmail.com>
	<54EB8DA8.6060302@aklaver.com>
	<CACi+J=QXdjoXt6O9r8Hren=Gr0GUrPahULTBbbjfNXXT4oYULQ@mail.gmail.com>
	<54EC98EA.2030701@aklaver.com>
	<54ECD2CE.50701@archidevsys.co.nz>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

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 <http://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



view thread (17+ messages)

Message-ID: <54ECD7ED.30607@aklaver.com>
Permalink:  ../54ECD7ED.30607@aklaver.com/
Also on:    postgresql.org/message-id/54ECD7ED.30607@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: adrian.klaver@aklaver.com, GavinFlower@archidevsys.co.nz, george.woodring@iglass.net, tgl@sss.pgh.pa.us, pg@fastcrypt.com, pgsql-general@postgresql.org
  Subject: Re: SQL solution for my JDBC timezone issue
  In-Reply-To: <54ECD7ED.30607@aklaver.com>
  References: <CACi+J=S96EmLRhqGY4EYUc7vEvrx_KTQJdvT9sE1xA8SvWT69Q@mail.gmail.com> <CADK3HHJLbxfGuEpeQ6tGpFp2GGQCT8PcdepjAmSU9KMV_AKNEA@mail.gmail.com> <CACi+J=SHZJTjVG_pgjhHnttvK3aKqYG-CBO8wLDBtW07XbUbiw@mail.gmail.com> <31121.1424706593@sss.pgh.pa.us> <CACi+J=Sp1yFe-GsGO2Cxp3G1w7X38hkEeLdKk381AHuqYPeuSA@mail.gmail.com> <54EB8DA8.6060302@aklaver.com> <CACi+J=QXdjoXt6O9r8Hren=Gr0GUrPahULTBbbjfNXXT4oYULQ@mail.gmail.com> <54EC98EA.2030701@aklaver.com> <54ECD2CE.50701@archidevsys.co.nz> <54ECD7ED.30607@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox