diff --git a/src/Element/NoteTime.tsx b/src/Element/NoteTime.tsx index 5e27f90..11ce062 100644 --- a/src/Element/NoteTime.tsx +++ b/src/Element/NoteTime.tsx @@ -12,6 +12,8 @@ export interface NoteTimeProps { export default function NoteTime(props: NoteTimeProps) { const [time, setTime] = useState(); const { from, fallback } = props; + const absoluteTime = new Intl.DateTimeFormat(undefined, { dateStyle: 'medium', timeStyle: 'long'}).format(from); + const isoDate = new Date(from).toISOString(); function calcTime() { let fromDate = new Date(from); @@ -46,5 +48,5 @@ export default function NoteTime(props: NoteTimeProps) { return () => clearInterval(t); }, [from]); - return <>{time} + return }