Commit a14fdc88 authored by Johannes Bill's avatar Johannes Bill

increased ohours datespan for index from +1 to +5 month from now

parent aa483b47
...@@ -30,7 +30,7 @@ function getOHIndex(info, today, cb) { ...@@ -30,7 +30,7 @@ function getOHIndex(info, today, cb) {
today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); today = new Date(today.getFullYear(), today.getMonth(), today.getDate());
var epochSpan = [new Date(today.getFullYear(), today.getMonth(), today.getDate() - 7), var epochSpan = [new Date(today.getFullYear(), today.getMonth(), today.getDate() - 7),
new Date(today.getFullYear(), today.getMonth() + 1, today.getDate())]; new Date(today.getFullYear(), today.getMonth() + 5, today.getDate())];
dateArray(epochSpan).getData(info, function (err, result) { dateArray(epochSpan).getData(info, function (err, result) {
if (err) return cb(err); if (err) return cb(err);
var resultSure = result.intervals; var resultSure = result.intervals;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment