Skip to content

Commit

Permalink
Fix meetingPlanner cookbook sample
Browse files Browse the repository at this point in the history
  • Loading branch information
justingrant committed Jul 1, 2020
1 parent 92a1fea commit 20fe4cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/cookbook/meetingPlanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ const timeZones = [
];

// Start the table at midnight local time
const startTime = now.with({ ...Temporal.Time.from('00:00').getFields() }); // midnight
const startTime = now.with(Temporal.Time.from('00:00')); // midnight

// Build the table
const table = document.getElementById('meeting-planner');
timeZones.forEach(({ name }) => {
const row = document.createElement('tr');

const title = document.createElement('td');
title.textContent = `${name} (UTC${now.getOffsetString})`;
const offset = now.with({ timeZone: name }).timeZoneOffsetString;
title.textContent = `${name} (UTC${offset})`;
row.appendChild(title);

for (let hours = 0; hours < 24; hours++) {
Expand Down

0 comments on commit 20fe4cd

Please sign in to comment.