feat: articles list screen

This commit is contained in:
fsylvain committed 2026-09-27 17:12:23 +02:00
1 parent ca3fe20519
commit f6d0d01092
14 files changed
+2353 -25

No files matched your search

+4
View File
@@ -22,6 +22,10 @@ function formatAbsoluteDate(date: Date) {
return `${date.getDate()} ${MONTH_NAMES[date.getMonth()]} ${date.getFullYear()}`
}
export function formatAbsoluteDateFromIso(iso: string) {
return formatAbsoluteDate(new Date(iso))
}
export function formatRelativeDate(iso: string, now: Date = new Date()) {
const date = new Date(iso)
const diffMs = now.getTime() - date.getTime()