Date trunc in UTC

From: Thrasher <thrasher(at)fibers(dot)upc(dot)es>
To: pgsql-sql(at)postgresql(dot)org
Subject: Date trunc in UTC
Date: 2002-11-20 09:44:49
Message-ID: 3DDB5991.9060706@fibers.upc.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Luis Sousa 2002-11-20 09:44:53 Re: trying to learn plpqsql... so please forgive..
Previous Message Luis Sousa 2002-11-20 09:38:46 Re: Problems invoking psql. Help please.