Fixed string datetime bug