Fixed problem with date time fields