feat: entry editor at /content/:key/new and /content/:key/:id
This commit is contained in:
1 parent
91d916fb74
commit
fba20f83c5
94 files changed
+7116
-423
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { formatAbsoluteDateFromIso } from '@/lib/relativeDate'
|
||||
import { formatClock } from '@/lib/updateFormat'
|
||||
|
||||
export function formatEntryStamp(iso: string) {
|
||||
return `${formatAbsoluteDateFromIso(iso)}, ${formatClock(new Date(iso))}`
|
||||
}
|
||||
|
||||
export function formatSavedClock(iso: string) {
|
||||
return formatClock(new Date(iso))
|
||||
}
|
||||
Reference in new issue
Block a user