pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: eshkinkot@gmail.com
To: tgl@sss.pgh.pa.us
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz
Date: Sun, 22 Apr 2012 11:51:48 -0500
Message-ID: <4F93F0D4020000250004720C@gw.wicourts.gov> (raw)

> Tom Lane  wrote:
> eshkinkot@gmail.com writes:
>> set timezone to 'W-SU'; select '2011-03-27 23:00:00'::timestamptz;
>> SET
>> timestamptz
>> ------------------------
>> 2011-03-28 02:59:54+04
> 
> Bizarre. On my Fedora 16 box, I see a different misbehavior:
> 
> regression=# set timezone to 'Europe/Moscow'; select '2011-03-27
> 23:00:00'::timestamptz;
> SET
> timestamptz
> ------------------------
> 2011-03-28 00:29:40+04
> (1 row)

Ubuntu 10.04 LTS
Linux kevin-desktop 2.6.32-40-generic-pae #87-Ubuntu SMP
  Mon Mar 5 21:44:34 UTC 2012 i686 GNU/Linux
 
PostgreSQL 9.2devel on i686-pc-linux-gnu,
  compiled by gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 32-bit

test=# set timezone to 'Europe/Moscow'; select  '2011-03-27
23:00:00'::timestamptz;
SET
      timestamptz       
------------------------
 2011-03-28 00:29:40+04
(1 row)

-Kevin



view thread (7+ messages)  latest in thread

Message-ID: <4F93F0D4020000250004720C@gw.wicourts.gov>
Permalink:  ../4F93F0D4020000250004720C@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4F93F0D4020000250004720C@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, eshkinkot@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #6605: wrong type cast from timestamp to timestamptz
  In-Reply-To: <4F93F0D4020000250004720C@gw.wicourts.gov>
  References: <4F93F0D4020000250004720C@gw.wicourts.gov>

* 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