Skip to content

Commit

Permalink
fix: timezone issue with rrule ending (until)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdely committed Jun 3, 2024
1 parent 5b47120 commit e0b733a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/js/buildcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function buildCalendar(dlpath) {
res.rrule = {}
if (rrule.freq) res.rrule.freq = rrule.freq
if (rrule.parts.BYDAY) res.rrule.byweekday = rrule.parts.BYDAY
if (rrule.until) res.rrule.until = rrule.until.toString()
if (rrule.until) res.rrule.until = rrule.until.toString().substring(0,11) + '23:59:59' // ugly hack to work around Z timezone
if (rrule.interval) res.rrule.interval = rrule.interval
res.rrule.dtstart = item.getFirstPropertyValue('dtstart').toString()
//count duration ms
Expand Down

0 comments on commit e0b733a

Please sign in to comment.