pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gouse <gkhaji@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: to_timestamp returns the incorrect result for the DST fall over time.
Date: Thu, 6 Jan 2011 05:17:17 -0800 (PST)
Message-ID: <1294319837133-3330384.post@n5.nabble.com> (raw)
In-Reply-To: <AANLkTi=1ZF+XjUcfZizLDE8MNFtf+u5GfL1nf0=gMGeP@mail.gmail.com>
References: <1294161425291-3327393.post@n5.nabble.com>
	<12763.1294165610@sss.pgh.pa.us>
	<1294225849286-3328589.post@n5.nabble.com>
	<AANLkTi=1ZF+XjUcfZizLDE8MNFtf+u5GfL1nf0=gMGeP@mail.gmail.com>


I am afraid this may not give the result I am looking for. The  sp x(text)
gives me the result always will be UTC time zone.
My requirement here is, that i should pass the UTC time in text as a
parameter and should return local timestamp with timzone for that UTC time.


select x('2010-03-28 01:00:03 243') should return '2010-03-28 02:00:03.243 +
01' as locks are supposed to jump from 1AM directly to 2AM when my clock is
set to GMT 

select x ('2010-03-28 02:00:03 243') should return '2010-03-28 03:00:03.243
+ 01' 
select x ('2010-03-28 03:00:03 243') should return '2010-03-28 04:00:03.243
+ 01' 

Thanx,
Gouse


-- 
View this message in context: http://postgresql.1045698.n5.nabble.com/to-timestamp-returns-the-incorrect-result-for-the-DST-fall-o...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.



view thread (7+ messages)  latest in thread

Message-ID: <1294319837133-3330384.post@n5.nabble.com>
Permalink:  ../1294319837133-3330384.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1294319837133-3330384.post@n5.nabble.com

 · 

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: gkhaji@gmail.com
  Subject: Re: to_timestamp returns the incorrect result for the DST fall over time.
  In-Reply-To: <1294319837133-3330384.post@n5.nabble.com>
  References: <1294161425291-3327393.post@n5.nabble.com> <12763.1294165610@sss.pgh.pa.us> <1294225849286-3328589.post@n5.nabble.com> <AANLkTi=1ZF+XjUcfZizLDE8MNFtf+u5GfL1nf0=gMGeP@mail.gmail.com> <1294319837133-3330384.post@n5.nabble.com>

* 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