X-Original-To: pgsql-jdbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E75DA474E44 for ; Thu, 6 Feb 2003 07:25:12 -0500 (EST) Received: from www14.your-server.de (www14.your-server.de [213.133.104.14]) by postgresql.org (Postfix) with SMTP id 13E58474E42 for ; Thu, 6 Feb 2003 07:25:12 -0500 (EST) Received: (qmail 23141 invoked from network); 6 Feb 2003 12:25:00 -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 12:25:00 -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 h16COhSc019075 for ; Thu, 6 Feb 2003 13:24:43 +0100 Message-ID: <3E42540B.60002@thiesen.com> Date: Thu, 06 Feb 2003 13:24:43 +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/121 X-Sequence-Number: 6292 High, i' currently working with hibernate. They represent Calendar types as=20 timestamps. During prepareStatement and setTimestamp the data generated for= =20 the query has a modified date. The date is something original: insert into hours ( entrydate, activitydate, remark, time, userid, checked= ,=20 phaseid, activityid, zkub, id ) values '2003-02-06 11:11:29.338000000+00',= =20 '2003-02-06 11:11:29.338000000+00', '=F6f=F6lsdajkl=F6', 120, 'pk1057', 'f'= , null,=20 null, null, 12747 ) And this will be aftter the data was read back, the checked flag changed an= d=20 wrote back update hours set entrydate =3D '2003-02-05 23:00:00.000000000+00', activity= date=20 =3D '2003-02-05 23:00:00.000000000+00', remark =3D '=F6f=F6lsdajkl=F6', tim= e =3D 120,=20 userid =3D 'pk1057', checked =3D 't', phaseid =3D 5, activityid =3D 3, zkub= =3D ' '=20 where id =3D 12747 First occured the problem with postgres 7.2 so i updated to a current versi= on,=20 but no go either. peter