diff --git a/web/components/relative-timestamp.tsx b/web/components/relative-timestamp.tsx index 53cf2a3a..d4b1c189 100644 --- a/web/components/relative-timestamp.tsx +++ b/web/components/relative-timestamp.tsx @@ -1,16 +1,15 @@ import { DateTimeTooltip } from './datetime-tooltip' -import dayjs from 'dayjs' import React from 'react' +import { fromNow } from 'web/lib/util/time' export function RelativeTimestamp(props: { time: number }) { const { time } = props - const dayJsTime = dayjs(time) return ( - {dayJsTime.fromNow()} + {fromNow(time)} ) }