Use dayjs, not moment.js

Refs .
This commit is contained in:
Franz Liedke 2020-08-28 18:11:47 +02:00
parent ff5c0edce7
commit 2d923c83a1

@ -110,12 +110,12 @@ export default class StatisticsWidget extends DashboardWidget {
let label;
if (period.step < 86400) {
label = moment.unix(i + offset).utc().format('h A');
label = dayjs.unix(i + offset).format('h A');
} else {
label = moment.unix(i + offset).utc().format('D MMM');
label = dayjs.unix(i + offset).format('D MMM');
if (period.step > 86400) {
label += ' - ' + moment.unix(i + offset + period.step - 1).utc().format('D MMM');
label += ' - ' + dayjs.unix(i + offset + period.step - 1).format('D MMM');
}
}