pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Anibal David Acosta <aa@devshock.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: timezone, how postgres deal with it?
Date: Thu, 22 Nov 2012 10:55:00 -0500
Message-ID: <27540.1353599700@sss.pgh.pa.us> (raw)
In-Reply-To: <004701cdc8c7$3a5cf4b0$af16de10$@devshock.com>
References: <004701cdc8c7$3a5cf4b0$af16de10$@devshock.com>

"Anibal David Acosta" <aa@devshock.com> writes:
> This query returns false
> select ('2012-11-20 17:00:00-02:00'::timestamp with time zone) =
> ('2012-11-20 18:00:00-03:00'::timestamp with time zone)
> But are exactly same time

No, they aren't.  You're apparently still confused about the sign of
timezone offsets.  The first one corresponds to 19:00 GMT, the second
to 21:00 GMT.

BTW, why are you posting the exact same question you posted two days
ago on another list?

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <27540.1353599700@sss.pgh.pa.us>
Permalink:  ../27540.1353599700@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27540.1353599700@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, aa@devshock.com
  Subject: Re: timezone, how postgres deal with it?
  In-Reply-To: <27540.1353599700@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