Skip to content

Commit 1d320ae

Browse files
committed
refactor!: remove formatDateTime in favor of formatDate
1 parent a91b65e commit 1d320ae

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/runtime/utils/text.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,6 @@ export function formatDate(
168168
}
169169
}
170170

171-
export function formatDateTime(date: number | string | Date, locale = 'en-us') {
172-
return new Date(date).toLocaleString(locale, {
173-
year: 'numeric',
174-
month: 'long',
175-
day: 'numeric',
176-
hour: 'numeric',
177-
minute: 'numeric',
178-
})
179-
}
180-
181171
export function booleanToText(bool: boolean) {
182172
return bool ? 'Yes' : 'No'
183173
}

0 commit comments

Comments
 (0)