mirror of
https://github.com/flarum/core.git
synced 2025-08-02 22:47:33 +02:00
@@ -110,12 +110,12 @@ export default class StatisticsWidget extends DashboardWidget {
|
|||||||
let label;
|
let label;
|
||||||
|
|
||||||
if (period.step < 86400) {
|
if (period.step < 86400) {
|
||||||
label = moment.unix(i + offset).utc().format('h A');
|
label = dayjs.unix(i + offset).format('h A');
|
||||||
} else {
|
} else {
|
||||||
label = moment.unix(i + offset).utc().format('D MMM');
|
label = dayjs.unix(i + offset).format('D MMM');
|
||||||
|
|
||||||
if (period.step > 86400) {
|
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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user