Richardsl / heatmap-calendar-obsidian

An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Apache License 2.0
623 stars 103 forks source link

Ability to change first day of the week (sun/mon) #29

Open Richardsl opened 2 years ago

deivi98 commented 1 year ago

Please add this

dxcore35 commented 1 year ago

Please!

skr47ch commented 5 months ago

You can change the first day by going to the plugin folder '.obsidian\plugins\heatmap-calendar' and updating the following lines in main.js. Do take backup first.

  1. Change the 6 to 7

    let numberOfEmptyDaysBeforeYearBegins = (firstDayOfYear.getUTCDay() + 6) % 7;
  2. Move this line from below Sat to above Mon

    createEl("li", { text: "Sun", parent: heatmapCalendarDaysUl });