{Regular,Compact}Toot: fix time is future

This commit is contained in:
thislight 2024-08-13 14:06:55 +08:00
parent e4467ba795
commit c0c5c8ee3b
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ const CompactToot: Component<CompactTootProps> = (props) => {
@{toot().account.username}@{new URL(toot().account.url).hostname} @{toot().account.username}@{new URL(toot().account.url).hostname}
</span> </span>
<time datetime={toot().createdAt}> <time datetime={toot().createdAt}>
{formatRelative(toot().createdAt, props.now)} {formatRelative(props.now, toot().createdAt)}
</time> </time>
</div> </div>
<div <div

View file

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