Re: PostgreSQL Timezone and Brazilian DST - Mailing list pgsql-general

From Francisco Olarte
Subject Re: PostgreSQL Timezone and Brazilian DST
Date
Msg-id CA+bJJbzzAWh0pcA3vWPofVijkJjWFpGm5cvSECeqZhSTzuXQuw@mail.gmail.com
Whole thread Raw
In response to Re: PostgreSQL Timezone and Brazilian DST  (Edson Richter <edsonrichter@hotmail.com>)
List pgsql-general
On Wed, Oct 28, 2015 at 6:43 AM, Edson Richter <edsonrichter@hotmail.com> wrote:
> Configured since first setup. Brazil went DST few days ago.
> Today, executing

> Select now()
> Resulted in
>
> 2015-10-28 02:45:37-03:00
>
> I do expect
>
> 2015-10-28 03:45:37-02:00
>
> I suspect that Postgres is ignoring the DST change.

Have you checked the timezone definitions are correct in the server
machine? I.e., doing something like this on it:

$ TZ="America/Sao_Paulo" date -R
Wed, 28 Oct 2015 10:09:19 -0200
$ TZ="America/Sao_Paulo" date -R -d '1 month ago'
Mon, 28 Sep 2015 09:09:55 -0300

( I'm not familiar with your distro, but I got bitten by one of those
soem years ago, incorrect timezone definitions )

Francisco Olarte.


pgsql-general by date:

Previous
From: mephysto
Date:
Subject: Partitioning table by multiple columns
Next
From: Scott Mead
Date:
Subject: Re: Red Hat Policies Regarding PostgreSQL