Skip to content

Commit 3fcda54

Browse files
committed
Fix format
1 parent 67b83ba commit 3fcda54

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

assets/js/dashboard/dashboard-time-periods.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,10 @@ export function getCurrentPeriodDisplayName({
633633
if (isToday(site, dashboardState.date)) {
634634
return 'Today'
635635
}
636-
return formatDay(dashboardState.date, !isThisYear(site, dashboardState.date))
636+
return formatDay(
637+
dashboardState.date,
638+
!isThisYear(site, dashboardState.date)
639+
)
637640
}
638641

639642
if (dashboardState.period === '24h') {

assets/js/dashboard/stats/graph/date-formatter.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { parseUTCDate, formatMonthYYYY, formatDayShort, is12HourClock } from '../../util/date'
1+
import {
2+
parseUTCDate,
3+
formatMonthYYYY,
4+
formatDayShort,
5+
is12HourClock
6+
} from '../../util/date'
27

38
const monthIntervalFormatter = {
49
long(isoDate, options) {

assets/js/dashboard/util/date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const browserDateFormat = Intl.DateTimeFormat(navigator.language, {
77
hour: 'numeric'
88
})
99

10-
export function is12HourClock () {
10+
export function is12HourClock() {
1111
return browserDateFormat.resolvedOptions().hour12
1212
}
1313

0 commit comments

Comments
 (0)