Skip to content

Commit

Permalink
Fix cookbook examples
Browse files Browse the repository at this point in the history
These examples are tiny web apps and don't have any assertions in them, so
they are not run by test-cookbook. That's the reason nobody caught this
earlier.
  • Loading branch information
ptomato authored and Ms2ger committed Aug 8, 2023
1 parent 1dc2bbb commit 35ab2ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/cookbook/meetingPlanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/storageTank.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 35ab2ad

Please sign in to comment.