pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thrasher <thrasher@fibers.upc.es>
To: pgsql-sql@postgresql.org
Subject: Date trunc in UTC
Date: Wed, 20 Nov 2002 10:44:49 +0100
Message-ID: <3DDB5991.9060706@fibers.upc.es> (raw)

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




view thread (10+ messages)  latest in thread

Message-ID: <3DDB5991.9060706@fibers.upc.es>
Permalink:  ../3DDB5991.9060706@fibers.upc.es/
Also on:    postgresql.org/message-id/3DDB5991.9060706@fibers.upc.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: thrasher@fibers.upc.es
  Subject: Re: Date trunc in UTC
  In-Reply-To: <3DDB5991.9060706@fibers.upc.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox