pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Can postgresql ignore DST ?
Date: Thu, 14 Dec 2017 21:55:30 -0800
Message-ID: <c7596dea-48d6-ff4a-2582-aa292b5ac1a6@hogranch.com> (raw)
In-Reply-To: <CAEyp7J8rX_Hg8OkHURmPWqQLJHn8F8oz+FWqfoE52fEhoJqHTw@mail.gmail.com>
References: <CAEyp7J9kxG8Gr0sQi42MRTXEeKRc0F6xBD4r5u5fon=_90zSRQ@mail.gmail.com>
	<4805.1513227896@sss.pgh.pa.us>
	<CAEyp7J8k4DccqvaWhUfi0xetQHZee2QSAJ=81cPMEjqUbVGX0w@mail.gmail.com>
	<1513240090.2442.25.camel@cybertec.at>
	<CAEyp7J80UX2Tm=N=AnNKuhe_s9JqGRDT0EUTgbjaxNVOKcpd0A@mail.gmail.com>
	<CA+weYr0wvJBVvYnNxW1SN-BeTe_idkh3ZrX-9=YhPLD-n+vdwA@mail.gmail.com>
	<CAEyp7J8rX_Hg8OkHURmPWqQLJHn8F8oz+FWqfoE52fEhoJqHTw@mail.gmail.com>

On 12/14/2017 9:17 PM, Venkata B Nagothi wrote:
>
> On Fri, Dec 15, 2017 at 3:23 PM, Ben Madin <ben@ausvet.com.au 
> <mailto:ben@ausvet.com.au>> wrote:
>
>     I'd be a little worried that if you set timezone = 11 for
>     Australia/Sydney you are embedding the daylight savings value, not
>     the standard time value (UTC+10)
>
>
> Totally agree. We have a weird situation where-in i had to do this and 
> i would like to learn the impact on the data, i hope it would not 
> fiddle the existing data. We are currently experimenting this.


in PostgreSQL, fields that are type TIMESTAMP WITH TIME ZONE convert all 
input time values to UTC, and store it in an internal representation, 
and on output, they are converted to the client's current TIMEZONE.


-- 
john r pierce, recycling bits in santa cruz

view thread (11+ messages)  latest in thread

Message-ID: <c7596dea-48d6-ff4a-2582-aa292b5ac1a6@hogranch.com>
Permalink:  ../c7596dea-48d6-ff4a-2582-aa292b5ac1a6@hogranch.com/
Also on:    postgresql.org/message-id/c7596dea-48d6-ff4a-2582-aa292b5ac1a6@hogranch.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-general@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: Can postgresql ignore DST ?
  In-Reply-To: <c7596dea-48d6-ff4a-2582-aa292b5ac1a6@hogranch.com>
  References: <CAEyp7J9kxG8Gr0sQi42MRTXEeKRc0F6xBD4r5u5fon=_90zSRQ@mail.gmail.com> <4805.1513227896@sss.pgh.pa.us> <CAEyp7J8k4DccqvaWhUfi0xetQHZee2QSAJ=81cPMEjqUbVGX0w@mail.gmail.com> <1513240090.2442.25.camel@cybertec.at> <CAEyp7J80UX2Tm=N=AnNKuhe_s9JqGRDT0EUTgbjaxNVOKcpd0A@mail.gmail.com> <CA+weYr0wvJBVvYnNxW1SN-BeTe_idkh3ZrX-9=YhPLD-n+vdwA@mail.gmail.com> <CAEyp7J8rX_Hg8OkHURmPWqQLJHn8F8oz+FWqfoE52fEhoJqHTw@mail.gmail.com> <c7596dea-48d6-ff4a-2582-aa292b5ac1a6@hogranch.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