Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePiyK-00005z-G5 for pgsql-general@arkaria.postgresql.org; Fri, 15 Dec 2017 05:55:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePiyJ-0007Lb-Vg for pgsql-general@arkaria.postgresql.org; Fri, 15 Dec 2017 05:55:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ePiyJ-0007LL-Ky for pgsql-general@lists.postgresql.org; Fri, 15 Dec 2017 05:55:47 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ePiyE-00087S-VR for pgsql-general@lists.postgresql.org; Fri, 15 Dec 2017 05:55:46 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id vBF5tZl19038 for ; Thu, 14 Dec 2017 21:55:35 -0800 Subject: Re: Can postgresql ignore DST ? To: pgsql-general@lists.postgresql.org References: <4805.1513227896@sss.pgh.pa.us> <1513240090.2442.25.camel@cybertec.at> From: John R Pierce Message-ID: Date: Thu, 14 Dec 2017 21:55:30 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------CA4A180B4925A92F225EEF33" Content-Language: en-US X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------CA4A180B4925A92F225EEF33 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 12/14/2017 9:17 PM, Venkata B Nagothi wrote: > > On Fri, Dec 15, 2017 at 3:23 PM, Ben Madin > 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 --------------CA4A180B4925A92F225EEF33 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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> 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
--------------CA4A180B4925A92F225EEF33--