fantasycalendar / obsidian-fantasy-calendar

MIT License
175 stars 7 forks source link

[Bug] Leap Days Offset breaks calendar #119

Open Luca-s-Works opened 1 year ago

Luca-s-Works commented 1 year ago

Summary of the Problem

The offset feature of the Leap Day entry is causing the calendar to fail. The outcome is not as expected (link to online fantasy calendar)

Reproducing the Problem

Steps to reproduce the behavior:

  1. Starting from scratch, create a new calendar
  2. Load the Gregorian Calendar preset
  3. In the calendar settings, scroll down to Leap Days section
  4. Edit the Leap Day entry
  5. Set Offset value to 100
  6. Save and exit calendar settings
  7. Open calendar tab, optionally switch to Year View
  8. Select View Day from the gear menu and enter 31st December 1
  9. Notice that 0001/12/31 is Monday
  10. Move to 1st January 2
  11. Notice that 0002/1/1 is Friday instead of Tuesday

The errors keeps accumulating, resulting to be disruptive to the calendar purpose

Calendar Data Collecting

What Calendar system were you using? Gregorian Calendar, IRL

Was it created within the plugin, or imported from Fantasy Calendar online? Imported preset, from plugin settings

Please include a most recent copy or link to the calendar, if possible. See attached TXT

How are you adding custom events to the plugin? Please explain: No event added

Anything else you think may be helpful to tell us? The expected result can be seen online here

Obsidian Data Collecting

Are you using any syncing services? Which ones? Vault is in Dropbox folder

Is your Obsidian vault saved inside a syncing box or removable drive, such as a Dropbox folder or USB Drive? In Dropbox

Please attach a copy of your Show Debug Info, found under the Obsidian Top Bar -> Help option. Could not find such bar in Obsidian

Anything else that we forgot to ask that you think you ought to add? Also, this is a great spot for screenshots and error codes. I am using Obsidian v1.1.16 and Fantasy Calendar Plugin v3.0.0

Thank you for your submission! Screenshot 2023-04-21 154939 Screenshot 2023-04-21 155034 data.js.txt