Skip to content

Commit

Permalink
🐛 Format month name correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 15, 2022
1 parent ca315b0 commit 3843079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const run = async () => {
const file = join(".", "data", dir, "summary", "days", year, month);
const data = (await readJson(file)) as Record<string, any>;
Object.entries(data).forEach(([day, value]) => {
summary[`${zero(year)}-${zero(month.replace(".json", ""))}-${zero(day)}`] = value;
summary[`${zero(year)}-${month.replace(".json", "")}-${zero(day)}`] = value;
});
}
}
Expand Down

0 comments on commit 3843079

Please sign in to comment.