Skip to content

Commit

Permalink
Update countly.common.js
Browse files Browse the repository at this point in the history
countlyCommon.getDateRange function returned undefined values in Firefox.
  • Loading branch information
osoner committed Jul 29, 2012
1 parent c266847 commit 92858fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/express/public/javascripts/countly/countly.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,13 @@
formattedDateStart = moment((countlyCommon.periodObj.activePeriod+" " + countlyCommon.periodObj.periodMin + ":00:00").replace(/\./g, "/"));
formattedDateEnd = moment((countlyCommon.periodObj.activePeriod+" " + (countlyCommon.periodObj.periodMax) + ":00:00").replace(/\./g, "/"));
} else {
formattedDateStart = moment((countlyCommon.periodObj.activePeriod+"/" + countlyCommon.periodObj.periodMin).replace(/\./g, "/"));
formattedDateEnd = moment((countlyCommon.periodObj.activePeriod+"/" + (countlyCommon.periodObj.periodMax)).replace(/\./g, "/"));
if ((countlyCommon.periodObj.periodMin + "").indexOf(".") == -1) {
formattedDateStart = moment((countlyCommon.periodObj.activePeriod+"/" + countlyCommon.periodObj.periodMin + ".1").replace(/\./g, "/"));
formattedDateEnd = moment((countlyCommon.periodObj.activePeriod+"/" + (countlyCommon.periodObj.periodMax) + ".1").replace(/\./g, "/"));
} else {
formattedDateStart = moment((countlyCommon.periodObj.activePeriod+"/" + countlyCommon.periodObj.periodMin).replace(/\./g, "/"));
formattedDateEnd = moment((countlyCommon.periodObj.activePeriod+"/" + (countlyCommon.periodObj.periodMax)).replace(/\./g, "/"));
}
}
} else {
formattedDateStart = moment((countlyCommon.periodObj.currentPeriodArr[0]).replace(/\./g, "/"));
Expand Down

0 comments on commit 92858fd

Please sign in to comment.