fixed history object to be consistent with sql date