'use strict';
var moment = require('moment');
var _ = require('lodash');

// Generate an array with timesteps relevant for the dashboards
module.exports.generateSteps = function (startDate) {
  let timeSteps = [];
  var now = moment();
  for (let d = startDate.clone(); d <= now; d.month(d.month() + 1)) {
    timeSteps.push(d.clone());
  }
  return timeSteps;
}

// Add a date object to each object in an array
module.exports.addStep = function (rows) {
  rows.forEach(function (row) {
    row.timestep = moment.utc(`${row.year}-${row.month}-01`);
  });
  return rows;
}

@@ -539,16 +539,30 @@
 nth%7D-01%60
+, 'YYYY-MM-DD'
 );%0A  %7D);

Add missing date format