Fix Localized Months displaying in heatmap

This commit is contained in:
Tomazed 2023-01-24 18:03:32 +01:00
parent 9ebe4b55dd
commit 4ae057f626

View File

@ -208,7 +208,7 @@ export default {
const date = i === 0 ? this.firstWeekStart : this.$addDaysToDate(this.firstWeekStart, i) const date = i === 0 ? this.firstWeekStart : this.$addDaysToDate(this.firstWeekStart, i)
const dateString = this.$formatJsDate(date, 'yyyy-MM-dd') const dateString = this.$formatJsDate(date, 'yyyy-MM-dd')
const datePretty = this.$formatJsDate(date, 'MMM d, yyyy') const datePretty = this.$formatJsDate(date, 'MMM d, yyyy')
const monthString = this.$formatJsDate(date, 'MMM') const monthString = this.$strings[`Month${this.$formatJsDate(date, 'MMM')}`]
const value = this.daysListening[dateString] || 0 const value = this.daysListening[dateString] || 0
const x = col * 13 const x = col * 13
const y = row * 13 const y = row * 13
@ -270,4 +270,4 @@ export default {
}, },
beforeDestroy() {} beforeDestroy() {}
} }
</script> </script>