On 07/10/2015 05:54 AM, Ramesh T wrote:
select current_timestamp-to_timestamp(to_char(current_date,'YYYY-MM-DD HH24'||':'||'MI'||':'||'SS')||' '||(SELECT utc_offset FROM pg_catalog.pg_timezone_names WHERE name='US/Eastern'),'YYYY-MM-DD HH24'||':'||'MI'||':'||'SS')::timestamptz; it's not displaying timezone..any help..?
That would seem to depend on what is happening in the current_timestamp-to_timestamp function. So what is current_timestamp-to_timestamp doing or more importantly what is it returning before the timestamptz cast? -- Adrian Klaver adrian.klaver@xxxxxxxxxxx -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general