Skip to content

Commit

Permalink
Fix calls stats history if time is less than 10 am
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianMB-IT committed Jun 6, 2019
1 parent 04318d4 commit fc846ce
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -654,7 +654,7 @@ function getQCallsStatsHist(nullCallPeriod, cb) {
try {
let tempdate, i, tempval,
min = Math.floor(day.minutes()/30)*30,
currDatetime = currday + '-' + day.hours() + ':' + (min === 0 ? '00' : min),
currDatetime = currday + '-' + ('0' + day.hours()).slice(-2) + ':' + (min === 0 ? '00' : min),
basevalues = {},
emptyValues = {};
for (i = 0; i < period.length - 1; i++) {
Expand Down

0 comments on commit fc846ce

Please sign in to comment.