mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 02:02:19 +00:00
ensure DTSTART;VALUE=DATE: for ical format
This commit is contained in:
parent
29fecb36c8
commit
39babb4bb5
1 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,8 @@ module.exports.API = ->
|
|||
event.setDate d
|
||||
ical.addComponent event
|
||||
res.type('ics')
|
||||
res.send(200, ical.toString())
|
||||
formattedIcal = ical.toString().replace(/DTSTART\:/g, 'DTSTART;VALUE=DATE:')
|
||||
res.send(200, formattedIcal)
|
||||
|
||||
|
||||
# ---------- Deprecated Paths ------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue