From 5ca68ff682315cd04b9d4cf56fb0eb9d25685e1a Mon Sep 17 00:00:00 2001 From: Matt Lott Date: Wed, 11 Nov 2015 11:27:01 -0800 Subject: [PATCH] :bug:Fix analytics dashboard date oboe --- app/core/d3_utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/d3_utils.coffee b/app/core/d3_utils.coffee index fe9882a0b..5f17dd92a 100644 --- a/app/core/d3_utils.coffee +++ b/app/core/d3_utils.coffee @@ -4,7 +4,7 @@ module.exports.createContiguousDays = (timeframeDays, skipToday=true) -> # Return list of last 'timeframeDays' contiguous days in yyyy-mm-dd format days = [] currentDate = new Date() - currentDate.setUTCDate(currentDate.getUTCDate() - timeframeDays) + currentDate.setUTCDate(currentDate.getUTCDate() - timeframeDays + 1) currentDate.setUTCDate(currentDate.getUTCDate() - 1) if skipToday for i in [0...timeframeDays] currentDay = currentDate.toISOString().substr(0, 10)