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

Current Date Setting Displays One Month Ahead #144

Open
3 of 7 tasks
mwsmedia opened this issue Sep 10, 2024 · 2 comments
Open
3 of 7 tasks

Current Date Setting Displays One Month Ahead #144

mwsmedia opened this issue Sep 10, 2024 · 2 comments

Comments

@mwsmedia
Copy link

mwsmedia commented Sep 10, 2024

Check for existing bug reports before submitting.

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

Expected Behavior

When selecting a "current date" in the settings, the calendar's "today" tooltip should display the correct date, and the Month setting should display the "current" month.

Current behaviour

When selecting a "current date" ibn the settings, the calendar's "today" tooltip displays the following month (eg: if the "current date" month is 3, the tooltip shows 4), and the Month setting displays the month immediately following the "current date" month.

Reproduction

  1. Launch Obsidian, etc.
  2. Open Settings > Community Plugins > Calendarium
  3. Select custom calendar > Open Custom Creator
  4. Select Dates > Current Date
  5. Enter a current date
  6. Close Calendarium settings
  7. Close Obsidian Settings
  8. Open Calendarium view in the sidebar
  9. Hover over "today" = tooltip shows Current Date setting but for the month following the month selected in step 5

NOTE: My custom calendar has two intercalary "leap" months, one at the beginning of the year and one in the middle of the year. The first appears every seven years if the year is an odd number. The second, every seven years if the year is an even number. I believe what's happening is the Current Date setting is counting all months, including intercalary months.

Which Operating Systems are you using?

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

Obsidian Version Check

1.7.1 and 1.4.13

Plugin Version

1.4.0

Confirmation

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

Possible solution

The Current Date setting should be "smart" enough to consider if the year includes a leap month or leap days and compensate as applicable.

No response

@dredhorse
Copy link

for me the month in the hover is correct, but the year is not in sync with the displayed year of the calendar.
e.g. Today is 2022-09-11, but month calendar shows September 2023.
Double-clicking a date opens up a new calendar which shows that date... but the year is in sync with the Today hover year.
The calendar is configured with the years 2022, 2023, and 2024. But 2022 shows up as undefined.

image

@mwsmedia
Copy link
Author

Adding the following as a comment on the existing bug report because I think it's the same issue:

When an fc-date property is assigned to a note and the calendar associated is a custom calendar (eg: 394-15-09 00:19), that note shows on the correct month and date in the Calendarium sidebar view... however, clicking on that date to open an Agenda view shows the calendar for a month two previous from the correct one (to use regular months: if the date is 2024-09-18, it shows the Agenda view for 2024-07, with the correct day.

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