Starting adding S3 support for file uploading and retrieving.

This commit is contained in:
charles-gauthereau
2024-11-11 20:29:19 +01:00
parent 95f6af33ae
commit 9bafcce15a
5 changed files with 348 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
import {format} from "date-fns";
export function humanReadableDate(rawDate: string | number | Date) {
return format(new Date(rawDate), 'dd/MM/yyyy HH:mm')
}
export function timeAgo(rawDate: string | number | Date) {
const date = new Date(rawDate)
return "Not implemented"
}