mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
properly handle all-day events
This commit is contained in:
parent
a5fcfe7a02
commit
04c032deeb
1 changed files with 3 additions and 2 deletions
|
|
@ -29,8 +29,9 @@ module.exports = (expressApp, root, derby) ->
|
|||
_.each tasksWithDates, (task) ->
|
||||
event = new icalendar.VEvent(task.id);
|
||||
event.setSummary(task.text);
|
||||
# event.setDate new Date(task.date), 60 * 60 # Duration in seconds
|
||||
event.setDate new Date(task.date)
|
||||
d = new Date(task.date)
|
||||
d.date_only = true
|
||||
event.setDate d
|
||||
ical.addComponent event
|
||||
res.type('ics')
|
||||
res.send(200, ical.toString())
|
||||
|
|
|
|||
Loading…
Reference in a new issue