-
Notifications
You must be signed in to change notification settings - Fork 103
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
Not working with 2023? #57
Comments
Getting same when changing year to year: 2023 from the examples. |
Do you have the year variable set in your code? If you remove it completely, it should default to the current year |
This is the code: `dataviewjs dv.span("Mood (1-10)") const hue1 = 13 const calendarData= { for(let page of dv.pages('"Life/Journal/2023/Daily"').where(p=>p.mood)){
} renderHeatmapCalendar(this.container, calendarData) I just copied and pasted the thing from the example vault because I was too lazy to learn how to make it. 2022 worked fined for me. I can't find any variable with 2023. |
I originally tried to update the year to 2023 but removing the year: variable altogether seems to be working now. |
It seems to be an issue with the Timezone of the user when the code runs new Date(e.date).getFullYear() on line 84 of main.ts. It looks like the easiest way to fix this issue is to add T00:00 to e.date when the date is created. |
* added + 1 to date comparison to fix issue #57 * added T00:00 to new dates to respect time zones properly.
Calendar continues to show 2022 days. Do I need to do something to switch to 2023?
The text was updated successfully, but these errors were encountered: