Re: Error in date_trunc function? - Mailing list pgsql-general

From Thomas Lockhart
Subject Re: Error in date_trunc function?
Date
Msg-id 3BE0DCF5.CF0C91EA@fourpalms.org
Whole thread Raw
In response to Error in date_trunc function?  (Marat Khairullin <xmm@rambler.ru>)
List pgsql-general
...
> netquote=> select date_trunc('month', now());
>        date_trunc
> ------------------------
>  2001-10-01 00:00:00+04

This one rotated the time back to daylight savings time (the transition
date was in October), hence the one hour jump from now(). You certainly
would not want to somehow preserve a time zone into a date for which it
is invalid, right?

                     - Thomas

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: alter table workaround
Next
From: "Tille, Andreas"
Date:
Subject: Re: PostgreSQL dirver?