fixed datetime on edit and save