fix error edit datetime