mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
fix: wrong qs param, allow string to be passed to util.getDaysArray
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user