{Regular,Compact}Toot: fix time is future

This commit is contained in:
thislight 2024-08-13 14:06:55 +08:00
parent 2071c1e6b6
commit c56c098bdb
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
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}