fix datetime not str