Bug Fixed

This commit is contained in:
brausjonas
2023-06-09 00:07:02 +02:00
parent 2be842abea
commit 2280ff64a4
2 changed files with 10372 additions and 3 deletions
+2 -3
View File
@@ -13,9 +13,8 @@ export default function BasicDateCalendar(p) {
function getBackMonthColor(monthIndex)
{
let date = new Date(parseInt(startParts[2]), parseInt(startParts[1]) + monthIndex, 1)
console.log(p.highlightYear + " " + date.getFullYear())
if (date.getFullYear() === p.highlightYear && date.getMonth() === p.highlightMonth + 1)
let date = new Date(parseInt(startParts[2]), parseInt(startParts[1]) + monthIndex - 1, 1)
if (date.getFullYear() === p.highlightYear && date.getMonth() === p.highlightMonth)
{
return true
}else