time zone problem

Поиск
Список
Период
Сортировка
От Cefull Lo
Тема time zone problem
Дата
Msg-id CACqWm=EvKnHAZnb95-SfoTbitu03qMKOwHYwLyeWxgp9yTrW9w@mail.gmail.com
обсуждение исходный текст
Ответы Re: time zone problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: time zone problem  (Cefull Lo <cefull@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: David Johnston
Дата:
Сообщение: Re: Appending a newline to a column value - in a psql cronjob
Следующее
От: "Hardy, Paul"
Дата:
Сообщение: pg_bulkloader