Re: PostgreSQL Timezone and Brazilian DST

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: Edson Richter <edsonrichter(at)hotmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Subject: Re: PostgreSQL Timezone and Brazilian DST
Date: 2015-10-28 12:15:27
Message-ID: CA+bJJbzzAWh0pcA3vWPofVijkJjWFpGm5cvSECeqZhSTzuXQuw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 28, 2015 at 6:43 AM, Edson Richter <edsonrichter(at)hotmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Mead 2015-10-28 12:49:49 Re: Red Hat Policies Regarding PostgreSQL
Previous Message mephysto 2015-10-28 11:57:03 Partitioning table by multiple columns