Feature/move list to client (#50)

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-01 15:02:12 +02:00
committed by GitHub
parent c2abdaadf2
commit 668434d246
181 changed files with 2922 additions and 1959 deletions

View File

@@ -39,6 +39,13 @@ export function formatDateTime(date: Date) {
}).format(date);
}
export function formatTime(date: Date) {
return new Intl.DateTimeFormat(getLocale(), {
hour: 'numeric',
minute: 'numeric',
}).format(date);
}
TimeAgo.addDefaultLocale(en);
const ta = new TimeAgo(getLocale());