fix format pattern

This commit is contained in:
shibafu 2020-08-19 23:54:56 +09:00
parent f8a5cc5d54
commit a54d57827f

View File

@ -90,7 +90,7 @@ function createMonthlyGraphData(from: Date) {
for (let i = 0; i < 12; i++) {
const current = addMonths(from, i);
const yearAndMonth = format(current, 'YYYY/MM');
const yearAndMonth = format(current, 'yyyy/MM');
keys.push(yearAndMonth);
values.push(graphData.monthlySum[yearAndMonth] || 0);
}