Fixed issue with the date of the day when editing