Re: Error in date_trunc function?

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: Marat Khairullin <xmm(at)rambler(dot)ru>
Cc: postgres-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error in date_trunc function?
Date: 2001-11-01 05:26:13
Message-ID: 3BE0DCF5.CF0C91EA@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-11-01 05:28:25 Re: user authentication crash by Erik Luke (20-08-2001; 1.3kb)
Previous Message Tom Lane 2001-11-01 03:48:37 Re: Error in date_trunc function?