feat: articles list screen
This commit is contained in:
1 parent
ca3fe20519
commit
f6d0d01092
14 files changed
+2353
-25
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user