Allow null values for datetime fields
Missed defining app variable