Skip to content

Commit

Permalink
fix workshops
Browse files Browse the repository at this point in the history
  • Loading branch information
lero62 committed Nov 4, 2024
1 parent be9115a commit a304005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fetch-workshops.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ const fetchData = async (client, vars) => {
workshops.map(async wrp => {
let djsStartDate = wrp.location && dayjs(wrp.location, 'MMMM D, HH');
if (djsStartDate && !djsStartDate.isValid()) {
djsStartDate = dayjs(wrp.location, 'MMMM D');
djsStartDate =
dayjs(wrp.location, 'MMMM D') || dayjs(wrp.location, 'MMMM D-D');
}

return {
Expand Down

0 comments on commit a304005

Please sign in to comment.