Closed pickittwice closed 7 months ago
It's 2024 now, but the heatmap calendar stays at 2023.
if I set year explicitly to 2024 it works, but shouldn't it be the current year by default when year is not set
the query is:
const hue1 = 13 //red const hue2 = 132 //green const calendarData = { intensityScaleStart: 4, intensityScaleEnd: 9, colors: { blue: [ "#07C8F9", "#08B7F6", "#09A6F3", "#0995F0", "#0A85ED", "#0B74EA", "#0C63E7", "#0C52E4", "#0D41E1"], }, entries: [] } for(let page of dv.pages('"Journal"').where(p=>p.sleep)){ let date = moment(page.file.name, "YYYY-MM-DD-ddd"); let formattedDate = date.format('YYYY-MM-DD'); // dv.span("<br>"+formattedDate) calendarData.entries.push({ date: formattedDate, intensity: page.sleep, content: await dv.span(`[](${page.file.name})`), //for hover preview }) } renderHeatmapCalendar(this.container, calendarData)
I'm not quite sure of the reason but it works as expected today(1.4), so I would just close this issue
I still have this issue. Obsidian 1.5.8, plugin 0.6.0.
It's 2024 now, but the heatmap calendar stays at 2023.
if I set year explicitly to 2024 it works, but shouldn't it be the current year by default when year is not set
the query is: