From: Om Prakash Jaiswal <op12om@yahoo.co.in>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: ERROR IN EPOCH DATA TO TIMESTAMP WITHOUT TIME ZONE
Date: Thu, 22 Jun 2017 12:02:03 +0000 (UTC)
Message-ID: <39669097.1721703.1498132923225@mail.yahoo.com> (raw)
References: <39669097.1721703.1498132923225.ref@mail.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
I have converted date/time to epoch value.Extract epoch from datetimedatadatetimedata is data type TIMESTAMP WITHOUT TIME ZONE.Now I conveted
epoch value to TIMESTAMP WITHOUT TIME ZONE usingselect to_timestamp(epoch)
Now I am getting actual value with added value of +5:30.I also used select to_timestamp(epoch) to TIME zone 'IST'THIS is also not giving correct original input data.
this problem is not on Postgresql 9.0.
but now on postgresql9.4.8 version this problem is getting.how resolve it?
RegardsOm PrakashDBA, BANGALORE INDIA.MOB: 9035635787
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: op12om@yahoo.co.in
Subject: Re: ERROR IN EPOCH DATA TO TIMESTAMP WITHOUT TIME ZONE
In-Reply-To: <39669097.1721703.1498132923225@mail.yahoo.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