pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Egon Reetz <reetz@usco.de>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Wrong date inserts
Date: Sun, 14 Apr 2002 13:06:38 -0400
Message-ID: <22185.1018803998@sss.pgh.pa.us> (raw)
In-Reply-To: <3CB9674D.5E1BB361@usco.de>
References: <3CB9674D.5E1BB361@usco.de>

Egon Reetz <reetz@usco.de> writes:
> It looks like day and month are exchanged, when the day is less or equal
> 12.

Sounds like you should change DateStyle to tell the truth about the date
format you are using.  The system has to rely on that when the field
values don't make it obvious which component is which.

Looks like you want 'German' datestyle for this input.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <22185.1018803998@sss.pgh.pa.us>
Permalink:  ../22185.1018803998@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22185.1018803998@sss.pgh.pa.us

 · 

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 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: tgl@sss.pgh.pa.us, reetz@usco.de
  Subject: Re: Wrong date inserts
  In-Reply-To: <22185.1018803998@sss.pgh.pa.us>
  References: <3CB9674D.5E1BB361@usco.de> <22185.1018803998@sss.pgh.pa.us>

* 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