mirror of
https://github.com/flarum/framework.git
synced 2025-03-25 16:25:15 +08: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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user