fantasycalendar / obsidian-fantasy-calendar

MIT License
175 stars 7 forks source link

Calendar wont save "Specified current date is not valid" #109

Open TRUE-mOISTtOAST opened 1 year ago

TRUE-mOISTtOAST commented 1 year ago

I'm trying to make a custom calendar for a campaign I'm running. But after filling out all the information necessary to build and save the calendar, I'm getting a notification that the "Specified current date is not valid" at the top of the window. When looking at the current date selected, there is no notification that the date I've chosen is invalid by any means. DeepinScreenshot_select-area_20230212104652

TRUE-mOISTtOAST commented 1 year ago

^^It should also be noted that each month has 28 days, so the day variable for the current date shouldn't be out of bounds

valentine195 commented 1 year ago

I'm not able to reproduce this, unfortunately. If you give me a reproducible pattern I'll fix it ASAP though!

TRUE-mOISTtOAST commented 1 year ago

I basically type whatever in the required fields. For a quick test, I set the calendar name as "test", a single weekday as "asdf", a single month as "fdsa" with a length of 1234 days. When setting the current date, I use [day: 1, month: "fdsa", year: 1234]. After toying around with the other parameters, I found that enabling then disabling the custom year setting fixes the issue while keeping the fields for the current day untouched. When I enable then disable the custom year setting while the day and/or year field is empty, the invalid current date notification is still showed like in the image

I'm currently using Obsidian v1.1.9 and the current version of Fantasy Calendar though the community plugins tab