fix: wrong qs param, allow string to be passed to util.getDaysArray

This commit is contained in:
Julian Lam
2021-02-23 14:10:46 -05:00
parent cc93822436
commit f8e1a74c26
4 changed files with 3 additions and 15 deletions

View File

@@ -595,7 +595,7 @@
},
getDaysArray: function (from, amount) {
var currentDay = new Date(from || Date.now()).getTime();
var currentDay = new Date(parseInt(from, 10) || Date.now()).getTime();
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
var labels = [];
var tmpDate;