Working on project front side.

This commit is contained in:
charles-gauthereau
2024-12-01 11:11:27 +01:00
parent 42314a9b69
commit b955d11613
19 changed files with 136 additions and 32 deletions
+6
View File
@@ -7,4 +7,10 @@ export function humanReadableDate(rawDate: string | number | Date) {
export function timeAgo(rawDate: string | number | Date) {
const date = new Date(rawDate)
return "Not implemented"
}
export function formatDateLastContact(lastContact: string | number | Date | null) {
return lastContact
? format(new Date(lastContact), 'dd/MM/yyyy HH:mm')
: "Never connected."
}