Fixed a bug preventing date time fields from being empty