Date trunc in UTC

Поиск
Список
Период
Сортировка
От Thrasher
Тема Date trunc in UTC
Дата
Msg-id 3DDB5991.9060706@fibers.upc.es
обсуждение исходный текст
Ответы Re: Date trunc in UTC  (Richard Huxton <dev@archonet.com>)
Список pgsql-sql
Hi

I do not know if it's an error, but in this query

=# select date_trunc ('month', now ());       date_trunc
------------------------ 2002-11-01 00:00:00+01
(1 row)

I've got the truncated date dependant to my timezone.

Instead, I would like to have as a result
 2002-11-01 01:00:00+01

which is correct, but I cannot set the whole server to UTC. Any way to 
get this ?


Thanks



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

Предыдущее
От: Luis Sousa
Дата:
Сообщение: Re: trying to learn plpqsql... so please forgive..
Следующее
От: "Henshall, Stuart - Design & Print"
Дата:
Сообщение: Re: trying to learn plpqsql... so please forgive..