javalent / calendarium

The ultimate Obsidian plugin for crafting mind-bending fantasy and sci-fi calendars
MIT License
83 stars 11 forks source link

🐞 Frontmatter end date doesn't apply with date objects #142

Open Suamppa opened 3 months ago

Suamppa commented 3 months ago

Check for existing bug reports before submitting.

Expected Behavior

As stated in the documentation, the fc-end frontmatter property should be able to use the same formats as fc-date, including a date object, such as

---
fc-end:
  day: 23
  month: 6
---

and this should result in recurring events that span the given date range.

Current behaviour

I added the following to my yearly event note frontmatter:

---
fc-date:
  day: 12
  month: 6
fc-end:
  day: 23
  month: 6
---

fc-date works and the event gets added to that day, but only to that day, meaning fc-end does not register. I tried rescanning events and restarting Obsidian, but nothing changes. I tried setting the fc-calendar property to my calendar instead of relying on the default calendar behaviour, but that changed nothing either.

Reproduction

  1. Launch Obsidian Sandbox via the Open Sandbox Vault command.
  2. Install and enable the Calendarium plugin.
  3. Create a new calendar using the quick creation and choose Gregorian Calendar.
  4. Make sure that the new calendar is set as the default calendar and Add events to default calendar is enabled under Events management.
  5. Create a new note called Test event.
  6. Add the following frontmatter:
    ---
    fc-date:
    day: 1
    month: 8
    fc-end:
    day: 12
    month: 8
    ---
  7. Select Open Calendarium from the left ribbon or run the Calendarium: Open calendar command via the command palette.
  8. Confirm that Test event appears on the 1st of August yearly, but doesn't extend to the 12th like it should.

Which Operating Systems are you using?

Obsidian Version Check

Obsidian 1.6.7 and installer 1.5.8

Plugin Version

1.3.3

Confirmation

Possible solution

Feels like this is might be related to #138.

SubmergingSky commented 2 months ago

I can confirm that I am experiencing the apparent same bug. Nothing I have tried has been able to fix the issue.