[Client] Fix bug

This commit is contained in:
syuilo⭐️ 2017-03-14 06:36:58 +09:00 committed by GitHub
parent 8454bddf28
commit 585b4ec89d

View File

@ -39,7 +39,7 @@
: d.v > 0 : d.v > 0
? '#c6e48b' ? '#c6e48b'
: '#eee'; : '#eee';
d.date.weekday = (new Date(d.date.year + '-' + d.date.month + '-' + d.date.day)).getDay(); d.date.weekday = (new Date(d.date.year, d.date.month - 1, d.date.day)).getDay();
if (d.date.weekday == 6) x++; if (d.date.weekday == 6) x++;
}); });
this.update({ data }); this.update({ data });