X-Original-To: pgsql-jdbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3665C4758E1 for ; Thu, 6 Feb 2003 08:44:18 -0500 (EST) Received: from www14.your-server.de (www14.your-server.de [213.133.104.14]) by postgresql.org (Postfix) with SMTP id 61A314758DC for ; Thu, 6 Feb 2003 08:44:17 -0500 (EST) Received: (qmail 7082 invoked from network); 6 Feb 2003 13:44:18 -0000 Received: from port-14-41.gilat.ip.tiscali.net (HELO kontor.thiesen.de) (213.200.121.41) by www14.your-server.de with SMTP; 6 Feb 2003 13:44:18 -0000 Received: from thiesen.com (Pet.Thiesen.de [192.168.2.11]) by kontor.thiesen.de (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id h16DiBSc026131 for ; Thu, 6 Feb 2003 14:44:11 +0100 Message-ID: <3E4266AC.4060907@thiesen.com> Date: Thu, 06 Feb 2003 14:44:12 +0100 From: Peter Katzmann Organization: thiesen Hardware & Software design GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030124 X-Accept-Language: de-DE, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Timestamp problems Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/109 X-Sequence-Number: 6280 High, i' currently working with hibernate. They represent Calendar types as timestamps. During prepareStatement and setTimestamp the data generated for the query has a modified date. The date is something original: insert into hours ( entrydate, activitydate, remark, time, userid, checked, phaseid, activityid, zkub, id ) values '2003-02-06 11:11:29.338000000+00', '2003-02-06 11:11:29.338000000+00', '=F6f=F6lsdajkl=F6', 120, 'pk1057', 'f'= , null, null, null, 12747 ) And this will be aftter the data was read back, the checked flag changed and wrote back update hours set entrydate =3D '2003-02-05 23:00:00.000000000+00', activity= date =3D '2003-02-05 23:00:00.000000000+00', remark =3D '=F6f=F6lsdajkl=F6', tim= e =3D 120, userid =3D 'pk1057', checked =3D 't', phaseid =3D 5, activityid =3D 3, zkub= =3D ' ' where id =3D 12747 First occured the problem with postgres 7.2 so i updated to a current versi= on, but no go either. peter