Hi Edson, After migration to OJB 1.0.rc3 I don't have this problem anymore. Can anybody confirm it was a bug in OJB 0.9.7?
Regards, Mykola Ostapchuk > What your GMT? In my case, all date/time are stored in database with -3 > hours, because I'm on GMT-3. I'm using SapDB. > I think that is this you getting, and it's a internationalization Java > feature... > Can someone else confirm this? > > Edson Richter > > > ----- Original Message ----- > From: "Mykola Ostapchuk" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, July 08, 2003 9:23 PM > Subject: DateTime conversion problem again > > > Sorry to post this question again, I still can't solve the problem. Any help > will be very appreciated! > > > Can anybody tell me how to map DateTime MySql field in OJB? > > > My realization is the next: > > <field-descriptor id="13" name="userDateInserted" column="US_date_inserted" > jdbc-type="TIMESTAMP" > > conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimest > ampFieldConversion"/> > > userDateInserted - of type java.util.Date. > > After setting the Date, OJB inserts right date. But time is 1 hour minus of > the actual time (minutes and seconds are right). > Interesting, the userDateInserted has right Date value, but after passing it > thru OJB, Date is decreased for 1 hour... > Is it some kind of a bug? > Am I doing something wrong? > Any suggestions? > > > Regards, > Mykola Ostapchuk > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.497 / Virus Database: 296 - Release Date: 4/7/2003 > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]