[Opensource] Timestamps and field default values
Michael Rimov
rimovm at centercomp.com
Thu Nov 20 20:00:53 PST 2003
Raul,
CVS has a bugfix so you can call:
myObj.setField("created_date",new Date());
to set a full timetamp. RC-6 will have that. [I'm only waiting for one or
two emails verifying patches before I release it]
Otherwise, you can do:
DateTime.getDateTimeForDB(new Date(), request.getDataContext());
[I don't remember parameter order off hand, don't quote me on this last one
:) ]
HTH!
-Mike
More information about the Opensource
mailing list