fix datetime type