Fix for final dates in leap years being one day off