I have some doubts.
First, what is the end date of the sprint for?
This is because when I close the sprint it takes the date on which I click the button, not the one I have programmed.
In such a case it is possible to edit that date in Jira cloud managed by company.