time zone problem - Mailing list pgsql-general

From Cefull Lo
Subject time zone problem
Date
Msg-id CACqWm=EvKnHAZnb95-SfoTbitu03qMKOwHYwLyeWxgp9yTrW9w@mail.gmail.com
Whole thread Raw
Responses Re: time zone problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: time zone problem  (Cefull Lo <cefull@gmail.com>)
List pgsql-general
Hi everybody,
I'm located in Hong Kong, UTC+8 time zone. When I

select current_timestamp;

gives 

              now
-------------------------------
 2012-01-13 23:56:16.825558+08

However, when I 

select current_timestamp at time zone 'UTC+8';
I expect the result is the same as the above one. But the result is

          timezone
----------------------------
 2012-01-13 07:57:24.407825

How to get the correct timestamp at the time zone I gave?

Thanks in advance


pgsql-general by date:

Previous
From: David Johnston
Date:
Subject: Re: Appending a newline to a column value - in a psql cronjob
Next
From: "Hardy, Paul"
Date:
Subject: pg_bulkloader