Skip to content

Commit 8b8a031

Browse files
committed
refactor: auto indent
1 parent f4f3239 commit 8b8a031

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/utils/time.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ export function normalizeDate(date: string): string {
153153

154154
export function userFriendlyDate(date: string): string {
155155
if (isValidDate(date)) {
156-
return moment(date).local().format('YYYY-MM-DD HH:mm');
156+
return moment(date)
157+
.local()
158+
.format('YYYY-MM-DD HH:mm');
157159
} else {
158160
return date;
159161
}

0 commit comments

Comments
 (0)