Skip to content

Commit

Permalink
fix workshops start date
Browse files Browse the repository at this point in the history
  • Loading branch information
lero62 committed Nov 29, 2024
1 parent e67d303 commit 23b56cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fetch-workshops.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,10 @@ const fetchData = async (client, vars) => {
prerequisites: await markdownToHtml(wrp.prerequisites),
finishingTime: '',
startDate:
wrp.startDate || djsStartDate.isValid()
wrp.startDate ||
(djsStartDate && djsStartDate.isValid()
? djsStartDate.toISOString()
: null,
: null),
};
}),
);
Expand Down

0 comments on commit 23b56cc

Please sign in to comment.