Fix datetime field type