From 28c79cef2d28f3c5ed76a7de65c84cf5c796a55b Mon Sep 17 00:00:00 2001 From: CJ Yetman Date: Wed, 15 Oct 2025 22:05:57 +0200 Subject: [PATCH] also pad the day so it's always 2 digits --- src/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph.js b/src/graph.js index 5840ab1..79d6d0b 100644 --- a/src/graph.js +++ b/src/graph.js @@ -227,7 +227,7 @@ export function getStartFromDateStr(daysBefore = daysBefore_global) { var currentDate = new Date(); var startFromDate = incrementDate(currentDate, -daysBefore); - var startFromDateStr = startFromDate.getFullYear() + "-" + padToTwo(startFromDate.getMonth()+1) + "-" + startFromDate.getDate(); + var startFromDateStr = startFromDate.getFullYear() + "-" + padToTwo(startFromDate.getMonth()+1) + "-" + padToTwo(startFromDate.getDate()); return startFromDateStr; }