RegularToot: fix time display problem

This commit is contained in:
thislight 2024-09-14 12:28:22 +08:00
parent a50b57639c
commit a7d5c40a39

View file

@ -187,7 +187,7 @@ function TootAuthorGroup(props: { status: mastodon.v1.Status; now: Date }) {
}}
/>
<time datetime={toot().createdAt}>
{formatRelative(props.now, toot().createdAt)}
{formatRelative(toot().createdAt, props.now)}
</time>
<span>
@{toot().account.username}@{new URL(toot().account.url).hostname}