[Opensource] Bug when using DBObject.setField("name", new Date())

Raul DAVIDOVICH R.DAVIDOVICH at caconcology.com
Tue Feb 17 03:26:29 PST 2004


Hello,

When I try to use either
dbobj.setField("datemodif", new Date());
or
dbobj.setField("datemodif", DateTime.getDateTimeForDB(this.getDataContext
()));

I get the following exception:
com.jcorporate.expresso.core.dataobjects.DataException:
(com.jcorporate.expresso.core.dataobjects.jdbc.JDBCUtil) Unable to parse a
date value from field 'ChangeTime' which contained '17/02/04 12:00:14'
using pattern 'yyyy-MM-dd HH:mm:ss'

I think it might be some configuration issue, but I'm not sure.

I'm trying to debug it, so if ever I find something new I'll post it.

Any clues will be very helpful

Best regards


---------------------------------------------------
Raul Davidovich
Responsable Informatique
Cvitkovic & Associés Consultants

(33) 1 45 15 40 68
(33) 1 45 15 40 41 Fax
-------------------------------------------------------
http://www.caconcology.com






More information about the Opensource mailing list