ignore nil time

when  date/datetime type  nil-value  inserted to db,the value would unexpected changed to "0000-00-00 00:00:00" or "1970-01-01 00:00:00" from   NULL(mysql).