-
-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Check for existing bug reports before submitting.
- I searched for existing Bug Reports and found no similar reports.
Expected Behavior
While using Calendarium regularly, I've encountered a peculiar bug: when adding a leap day, I expect the "absolute day counter" to remain unchanged.
Current behaviour
However, this only turns out to be incorrect when the month CHANGES.
Reproduction
Let me explain better by reproducing an example:
- Create any calendar.
- For explanatory purposes, I'll use the Gregorian calendar.
- Edit the calendar from the "Open Custom Creator" btn.
- Then, from Dates, scroll down to Leap Days.
- Create a new leap day for the month of February.
- Select the "intercalary" checkbox and set any number before the last day of the month
(it can also be the last day, but for explanatory purposes, I'll set a different day from the last). - The day conditions are irrelevant: just set an annual repetition.
- Save and open the calendar.
- Select the yearly view and move to the previous year (2024) in February.
- Select "Show day number."
- Select 2-3 days before the leap day you set.
- From the window that appears read the current day number and start advancing the days.
You will see that both the default leap day and the new leap day are counted correctly, BUT when you get to the 1st day of the month, it is counted as the same day as the last day of the previous month: it has not advanced by 1 day.
This means that one day has not been counted. Which one? Just move forward one year to see that the day it's the one with the “intercalary” option (the day we added earlier).
So, the leap “intercalary” day is simultaneously counted by the month in which it is found, and ignored by the following months of that year.
It is essential to note that this also happens with months with the “intercalary” option: the internal count is basically thrown off.
From there, I continued to investigate further to understand how it would affect the plugin, and apparently both the lunar cycles and the weather, which I deduce are based on the absolute value of days, are being distorted. (If you'd like, I can open a separate ticket just for these two)
The problem in short is that:
The internal system for counting absolute days does not correctly take into account “intercalary” options, only temporarily counting them in the month in which they occur.
Which Operating Systems are you using?
- Android
- iPhone/iPad
- Linux
- macOS
- Windows
Obsidian Version Check
1.10.3 and 1.8.4
Plugin Version
2.1.0
Confirmation
- I have disabled all other plugins and the issue still persists.
Possible solution
No response