We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1acd66b commit 4f09840Copy full SHA for 4f09840
1 file changed
src/hooks/useGitHubData.ts
@@ -39,10 +39,16 @@ const initialDailyActivity: DailyActivity = {
39
reminders: [],
40
};
41
42
-const getDateKey = (date: Date): string =>
43
- date.toISOString().split('T')[0];
+const getDateKey = (date: Date): string => {
+ const year = date.getFullYear();
44
+ const month = `${date.getMonth() + 1}`.padStart(2, '0');
45
+ const day = `${date.getDate()}`.padStart(2, '0');
46
+
47
+ return `${year}-${month}-${day}`;
48
+};
49
50
const buildDailyReminders = ({
51
52
commitCountToday,
53
prOpenedToday,
54
prMergedToday,
0 commit comments