If I have NULL datetime field in database and in model define it as:
then when I submit form (generated with setModel) it saves 01/01/1970 into database instead of NULL value.
There are actually 2 issues:
1) NULL (empty) datetime fields saves in database as 0000-00-00 00:00:00.
2) Such 0000-00-00 dates show up in grid as 01/01/1970 because of limitation of Windows (I'm still working on WinXP). In Unix it should become 1901-12-13 I guess. Smallest possible date.
This should be fixed with: #118
It's fixed with 1c03aa8