Info JSON epoch is time of download, not time of upload.

This commit is contained in:
Roland 2022-12-08 13:45:46 -07:00
parent ad405d30cd
commit 9ffe6ee3f6
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
7 changed files with 16 additions and 69 deletions

View file

@ -29,7 +29,7 @@ import {
SearchInput,
TabLinks,
textEllipsis,
uploadDate,
epochToDateString,
useTitle
} from "./Common";
import {deleteArchives, postDownload} from "../api";
@ -151,7 +151,7 @@ function ArchivePage() {
<ExternalCardLink to={singlefileUrl}>
<Header as='h2'>{textEllipsis(archive.title || archive.url, 100)}</Header>
</ExternalCardLink>
<Header as='h3'>{uploadDate(archive.archive_datetime)}</Header>
<Header as='h3'>{epochToDateString(archive.archive_datetime)}</Header>
{domainHeader}
{urlHeader}
@ -208,7 +208,7 @@ export function ArchiveCard({file}) {
</CardLink>}
<CardMeta {...s}>
<p>
{uploadDate(archive.archive_datetime)}
{epochToDateString(archive.archive_datetime)}
</p>
</CardMeta>
<CardDescription>