X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 306D4D1C9ED for ; Mon, 8 Mar 2004 19:57:53 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 92840-09 for ; Mon, 8 Mar 2004 15:57:52 -0400 (AST) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 8C015D1C4EB for ; Mon, 8 Mar 2004 15:57:45 -0400 (AST) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id i28JuYAc001282; Mon, 8 Mar 2004 12:56:34 -0700 (MST) Date: Mon, 8 Mar 2004 12:42:50 -0700 (MST) From: "scott.marlowe" To: Dario Ottaviano Cc: Subject: Re: Problem with data format In-Reply-To: <1L82c.51237$Kc3.1570257@twister2.libero.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-IHS-MailScanner-Envelope-Sender: scott.marlowe@ihs.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/130 X-Sequence-Number: 12699 On Sat, 6 Mar 2004, Dario Ottaviano wrote: > Hi, i use Postgresql 7.2 on a windows server (Win 2000 Server). > The problem is that when i write a date into a timestamp field of a table, > it writes it in to No-Europe format. 7.2 had some issues with accepting the wrong date formats and just mangling them until they fit, whether it made sense or not (i.e. you could insert a date of the format 2003-22-03, which should be illegal, and it would swap it around and insert 2003-03-22) The fixes are in 7.3 and later, I'd suggest upgrading to 7.4.x if you want proper bounds checking on dates. > So, for istance, if i write the date: 04/03/2004 (4 Mar 2004), it writes the > date 03/04/2004 (3 Apr 2004) into the table . while 7.2 allows you to set a european or US date style, it will gladly swap months and days to get a date it can insert. Better, in my opinion, to use 7.3/7.4 which enforce the date style you set.