diff --git a/docs/cookbook/meetingPlanner.js b/docs/cookbook/meetingPlanner.js index 7e46c2d80d..c59a5d571c 100644 --- a/docs/cookbook/meetingPlanner.js +++ b/docs/cookbook/meetingPlanner.js @@ -2,7 +2,7 @@ const browserCalendar = new Intl.DateTimeFormat().resolvedOptions().calendar; const now = Temporal.Now.zonedDateTime(browserCalendar); const timeZones = [ - { name: 'Here', tz: now.timeZone }, + { name: 'Here', tz: now.timeZoneId }, { name: 'New York', tz: 'America/New_York' }, { name: 'London', tz: 'Europe/London' }, { name: 'Tokyo', tz: 'Asia/Tokyo' } diff --git a/docs/cookbook/storageTank.js b/docs/cookbook/storageTank.js index 708142cab1..a3bae1eb56 100644 --- a/docs/cookbook/storageTank.js +++ b/docs/cookbook/storageTank.js @@ -8,7 +8,7 @@ const labelFormatter = new Intl.DateTimeFormat(undefined, { weekday: 'short', hour: 'numeric', minute: 'numeric', - timeZone: Temporal.Now.timeZone() + timeZone: Temporal.Now.timeZoneId() }); const browserCalendar = labelFormatter.resolvedOptions().calendar; const tankMidnight = Temporal.Now.zonedDateTime(browserCalendar).withTimeZone(tankTimeZone).startOfDay().toInstant();