Re: time zone problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: time zone problem
Дата
Msg-id 22794.1326471507@sss.pgh.pa.us
обсуждение исходный текст
Ответ на time zone problem  (Cefull Lo <cefull@gmail.com>)
Ответы Re: time zone problem  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-general
Cefull Lo <cefull@gmail.com> writes:
> I'm located in Hong Kong, UTC+8 time zone. When I
> select current_timestamp;
>  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.

Sorry, but it isn't.  A time zone name spelled that way is a POSIX time
zone specification, and in POSIX positive offsets are west of Greenwich,
not east.  See
http://www.postgresql.org/docs/9.1/static/datatype-datetime.html#DATATYPE-TIMEZONES

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: eshishki
Дата:
Сообщение: Re: Corrupted index, what do i do?ruc
Следующее
От: Matt Dew
Дата:
Сообщение: Re: indexes no longer used after shutdown during reindexing