[Helma-user] ORM of timestamp and datetime DB fields

Marius Lessiak marius.lessiak at oewa.at
Tue Jan 16 17:01:36 CET 2007


thx for the clue, now it works.

cheers,
marius

Stefan Rinner schrieb:
>>> All properties of the new site entry get written to the database  
>>> EXCEPT
>>> for lu and ct which are of type TIMESTAMP. instead of the proper  
>>> values
>>> helma stores NULL into the db. i played around a bit and found out  
>>> that:
> 
> You are trying to set the value of the DATE column to a string - try  
> to set it using a Date Object.
> 
> newSite.lu = new Date(2007, 1, 1, 11, 11, 0, 0);
> 
> - stefan
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
> 


-- 
Marius Lessiak, Bakk.techn.
Tel: +43 (0) 1 512 88 66 - 17
Fax: +43 (0) 1 512 88 66 - 22
E-Mail: marius.lessiak at oewa.at
Web: http://www.oewa.at


More information about the Helma-user mailing list