diff --git a/omop_file_validator.py b/omop_file_validator.py index 28a47a8..be691db 100644 --- a/omop_file_validator.py +++ b/omop_file_validator.py @@ -78,7 +78,7 @@ def cast_type(cdm_column_type, value): if cdm_column_type == 'float' and isinstance(value, float): return value if cdm_column_type == 'date' and isinstance(value, datetime.date): - return datetime.date(value) + return value if cdm_column_type == 'timestamp' and isinstance(value, datetime.datetime): # do not do datetime.datetime return value