Re: Strange behavior with timestamptz

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Strange behavior with timestamptz
Дата
Msg-id 10999.1061845179@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Strange behavior with timestamptz  ("George Weaver" <georgew1@mts.net>)
Список pgsql-sql
"George Weaver" <georgew1@mts.net> writes:
> Does anyone have any idea why the default for seedlot recorded the time wit=
> h the day and month switched, resulting in the seedlot record being stamped=
>  Nov 8, 2003 while the transaction was stamped correctly as Aug 11, 2003?

It's really not possible to believe that both of those were loaded from
the defaults you show.  now() doesn't ever break down the system clock
value into day/month/year --- it just takes the system clock time in
seconds-since-epoch and adds a constant to get the right zero offset.
So there's no credible mechanism for now() to make such a mistake.

I think that your client software supplied a value for one field and
didn't supply a value for the other, and the supplied value was provided
in the wrong DateStyle.
        regards, tom lane


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

Предыдущее
От: "George Weaver"
Дата:
Сообщение: Re: Strange behavior with timestamptz
Следующее
От: BenLaKnet
Дата:
Сообщение: Re: [ZODB-Dev] What are the ZopeDB limit?