Change duration.toIsoString to duration.toISOString. Closes #1752