Received: from kaxxa.go.com.mt ([194.158.48.20]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9C90An99713 for ; Fri, 12 Oct 2001 05:00:11 -0400 (EDT) (envelope-from Robert.Farrugia@go.com.mt) Received: from jupiter.go.com.mt (jupiter [194.158.48.95]) by kaxxa.go.com.mt (8.9.3/8.8.7) with ESMTP id LAA14254 for ; Fri, 12 Oct 2001 11:01:24 +0200 Subject: Invalid date in database To: pgsql-admin@postgresql.org X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: Robert.Farrugia@go.com.mt Date: Fri, 12 Oct 2001 10:59:30 +0200 X-MIMETrack: Serialize by Router on Jupiter/MobIsle(Release 5.0.8 |June 18, 2001) at 10/12/2001 11:00:08 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Archive-Number: 200110/105 X-Sequence-Number: 2351 Hi, I noticed the following thing in postgres (7.1.x). I have a timestamp field which is populated by a java program using the new java.sql.Timestamp(System.currentTimeMillis()) command so as to set the current time when the record was edited (I know that I can use the now() command, but this is just an example). For most of the records, the timestamp is correct. But some of the records have incorrect timestamps namely they have a second value of 60 (e.g. 2001/10/12 12:14:60.00). This is creating problems especially when dumping/restoring as pg_dump dumps them incorrectly (2001/10/12 12:14:60.00) and then psql refuses to load them up. Any comments on this ? Regards Robert