fix datetime fields data type