andrewbrereton / obsidian-to-ical-plugin

This is a plugin for Obsidian that searches your vault for tasks that contain dates, and generates a calendar in iCal format that can be imported into your preferred calendar application.
MIT License
61 stars 15 forks source link

Enhancement & fix: Add dayplanner format support without time heading ; fix time format error in `DTSTART` and `DTEND` #91

Closed JeffeyChou closed 3 months ago

JeffeyChou commented 3 months ago

Dear andrewbrereton:

I make some enhancement and bug fix in my code. Such modification is relate to issue #89

The problem in this issue lies in that a time heading is needed by default in your current code, while some of us don't use time as heading, so it can not recognize the correct time.

I add a function to recognize task+day planner format: - [ ] 08:00 - 10:00 This is a test ⏳ 2024-07-23


The other thing I done is that I noticed that your test .ics file has some incorrect time format in DTSTART : incorrect time format

They also miss the DTEND field.

Another problem is that sometimes the time is recognized incorrectly. incorrect time

So I fix this, and add DTEND field by default with time 30 mins after start time. :) Correct time

So I made this pull request :P