Get timezone offset using timezone name code example Example: js get timezone name console.log(Intl.DateTimeFormat().resolvedOptions().timeZone)