Skip to content

Commit ba2365c

Browse files
authored
also pad the day so it's always 2 digits (#92)
1 parent 0987582 commit ba2365c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function getStartFromDateStr(daysBefore = daysBefore_global) {
227227

228228
var currentDate = new Date();
229229
var startFromDate = incrementDate(currentDate, -daysBefore);
230-
var startFromDateStr = startFromDate.getFullYear() + "-" + padToTwo(startFromDate.getMonth()+1) + "-" + startFromDate.getDate();
230+
var startFromDateStr = startFromDate.getFullYear() + "-" + padToTwo(startFromDate.getMonth()+1) + "-" + padToTwo(startFromDate.getDate());
231231

232232
return startFromDateStr;
233233
}

0 commit comments

Comments
 (0)