Skip to content

Commit

Permalink
fix: added missing uid
Browse files Browse the repository at this point in the history
  • Loading branch information
scolastico committed Apr 25, 2024
1 parent 0a8e97f commit 1c89de8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ms-ics-fix/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ async function doIcsFix(url) {
const d = new Date(t)
return d.toISOString()
} catch (ignored) {}
return ''
return new Date(0).toISOString()
}
events.push([
`BEGIN:VEVENT`,
`UID:${event.uid}`,
`DTSTART:${getTime(event.start)}`,
`DTEND:${getTime(event.end)}`,
`STATUS:${event.status}`,
Expand Down

0 comments on commit 1c89de8

Please sign in to comment.