Skip to content

Recurring events not returned via getEvents() #190

@jakar

Description

@jakar

Starting in either 1.10.2 or 1.10.3 (not sure which), recurring events no longer appear in the results that I get from getEvent(). However, the "ICS: import events" command does still include them.

In case I'm misusing the function (or anything else), here is entirety of my Templater code:

<%*
let icsDateText = tp.file.title?.trim();
icsDateText ??= tp.file.path(true).match(/([^\/\\]+)\.md$/i)?.at(1);
icsDateText ??= tp.date.now("YYYY-MM-DD");
let icsDate = moment(icsDateText, "YYYY-MM-DD");
let icsEvents = await app.plugins.getPlugin('ics').getEvents(icsDate);
icsEvents.sort((a,b) => a.utime - b.utime).forEach((e) => {
	tR += `- \`${e.time}\`-\`${e.endTime}\` — ${e.summary} — *${e.icsName}*\n`
})
-%>

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions