From: Robert.Farrugia@go.com.mt
To: pgsql-admin@postgresql.org
Subject: Invalid date in database
Date: Fri, 12 Oct 2001 10:59:30 +0200
Message-ID: <OFFA8885F7.3D04CE99-ONC1256AE3.0030EFC7@go.com.mt> (raw)
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
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: Robert.Farrugia@go.com.mt
Subject: Re: Invalid date in database
In-Reply-To: <OFFA8885F7.3D04CE99-ONC1256AE3.0030EFC7@go.com.mt>
References: <OFFA8885F7.3D04CE99-ONC1256AE3.0030EFC7@go.com.mt>
* 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