Skip to content

Commit

Permalink
Merge pull request #43 from GitNation/fix/workshopsStartDate
Browse files Browse the repository at this point in the history
fix workshops start date
  • Loading branch information
lero62 authored Nov 29, 2024
2 parents e67d303 + 23b56cc commit 9cb5e65
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 9cb5e65

Please sign in to comment.