Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 of 7 tasks
Suamppa opened this issue Jul 31, 2024 · 1 comment
Open
3 of 7 tasks

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

Suamppa opened this issue Jul 31, 2024 · 1 comment

Comments

@Suamppa
Copy link

Suamppa commented Jul 31, 2024

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

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
---
  1. Select Open Calendarium from the left ribbon or run the Calendarium: Open calendar command via the command palette.
  2. 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?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

Obsidian 1.6.7 and installer 1.5.8

Plugin Version

1.3.3

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

Feels like this is might be related to #138.

@SubmergingSky
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants