Fixed date parsing on loading edit page