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

@ -14,7 +14,7 @@ import {
SearchInput,
TabLinks,
textEllipsis,
uploadDate,
epochToDateString,
useTitle
} from "./Common"
import VideoPage from "./VideoPlayer";
@ -310,7 +310,7 @@ export function VideoCard({file}) {
const {s} = useContext(ThemeContext);
let video_url = `/videos/video/${video.id}`;
const upload_date = uploadDate(video.upload_date);
const upload_date = epochToDateString(video.upload_date);
// A video may not have a channel.
const channel = video.channel ? video.channel : null;
let channel_url = null;