fix datetime data type