Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 73EEE1337B9D for ; Thu, 6 Jan 2011 09:17:25 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 14976-02 for ; Thu, 6 Jan 2011 13:17:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id F2F471337B5D for ; Thu, 6 Jan 2011 09:17:17 -0400 (AST) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PapiP-0000yx-4W for pgsql-bugs@postgresql.org; Thu, 06 Jan 2011 05:17:17 -0800 Date: Thu, 6 Jan 2011 05:17:17 -0800 (PST) From: Gouse To: pgsql-bugs@postgresql.org Message-ID: <1294319837133-3330384.post@n5.nabble.com> In-Reply-To: References: <1294161425291-3327393.post@n5.nabble.com> <12763.1294165610@sss.pgh.pa.us> <1294225849286-3328589.post@n5.nabble.com> Subject: Re: to_timestamp returns the incorrect result for the DST fall over time. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.766 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201101/25 X-Sequence-Number: 29047 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-over-time-tp3327393p3330384.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.