From: Egon Reetz <reetz@usco.de>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Wrong date inserts
Date: Sun, 14 Apr 2002 13:26:05 +0200
Message-ID: <3CB9674D.5E1BB361@usco.de> (raw)
Hello,
database is 7.1.3, compiled with -enable-local -enable-recode
-enable-multibyte=UNICODE,
initdb -E UNICODE, createdb -E LATIN1.
I have a table with 2 date fields (start_date, end_date).
When I do: insert into my_table values ('12.04.2002', '31.08.2002');
I'm getting with select * from my_table:
2002-12-04 | 2002-08-31
It looks like day and month are exchanged, when the day is less or equal
12. Is this a known behavior? Anyone has an experiance like this with
7.2.1?
Thanks
Egon
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: reetz@usco.de
Subject: Re: Wrong date inserts
In-Reply-To: <3CB9674D.5E1BB361@usco.de>
References: <3CB9674D.5E1BB361@usco.de>
* 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