style: change comment time view

This commit is contained in:
Kentai Radiquum 2024-08-09 17:50:02 +05:00
parent c5112e05be
commit 8c516d8673
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -1,4 +1,4 @@
import { unixToDate } from "#/api/utils"; import { unixToDate, sinceUnixDate } from "#/api/utils";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { ENDPOINTS } from "#/api/config"; import { ENDPOINTS } from "#/api/config";
import { Button } from "flowbite-react"; import { Button } from "flowbite-react";
@ -101,7 +101,7 @@ export const CommentsComment = (props: {
dateTime={props.comment.timestamp.toString()} dateTime={props.comment.timestamp.toString()}
title={unixToDate(props.comment.timestamp, "full")} title={unixToDate(props.comment.timestamp, "full")}
> >
{unixToDate(props.comment.timestamp)} {sinceUnixDate(props.comment.timestamp)}
</time> </time>
</p> </p>
</div> </div>