pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: rgc@rgc1.inka.de
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15127: epoch lies 1 hour ahead
Date: Thu, 22 Mar 2018 10:35:02 -0400
Message-ID: <32426.1521729302@sss.pgh.pa.us> (raw)
In-Reply-To: <152172494965.9509.10320952862957414465@wrigleys.postgresql.org>
References: <152172494965.9509.10320952862957414465@wrigleys.postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> I think there is a bug in 10.2.
> Compared to my old 9.1.18 installation, extracted epoch values lie 1h
> ahead.

Hm.  I get

regression=# select extract(epoch from timestamptz '2018-03-22 11:50:00+01');
 date_part  
------------
 1521715800
(1 row)

in either HEAD or 9.1.24 (don't have a build of 9.1.18 laying about),
and this agrees with outside tools such as "date", so I think it's
the right answer.  I'm not sure why your 9.1.18 installation is giving
a different answer.  At this time of year, though, a discrepancy in
opinions about the DST transition date is the first theory that springs
to mind.  I wonder which version of the tzdata database your 9.1.18
is using.

I also find this in the 9.1.23 release notes:

    <listitem>
     <para>
      Update our copy of the timezone code to match
      IANA's <application>tzcode</application> release 2016c (Tom Lane)
     </para>

     <para>
      This is needed to cope with anticipated future changes in the time
      zone data files.  It also fixes some corner-case bugs in coping with
      unusual time zones.
     </para>
    </listitem>

so it's not out of the question that the behavior discrepancy arises
from a since-fixed bug.

			regards, tom lane




view thread (2+ messages)

Message-ID: <32426.1521729302@sss.pgh.pa.us>
Permalink:  ../32426.1521729302@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32426.1521729302@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rgc@rgc1.inka.de
  Subject: Re: BUG #15127: epoch lies 1 hour ahead
  In-Reply-To: <32426.1521729302@sss.pgh.pa.us>
  References: <152172494965.9509.10320952862957414465@wrigleys.postgresql.org> <32426.1521729302@sss.pgh.pa.us>

* 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