diff --git a/app/src/api.js b/app/src/api.js index f05315e2..8006aad2 100644 --- a/app/src/api.js +++ b/app/src/api.js @@ -1,12 +1,4 @@ -import { - API_URI, - ARCHIVES_API, - DEFAULT_LIMIT, - emptyToNull, - OTP_API, - secondsToDateTime, - VIDEOS_API -} from "./components/Common"; +import {API_URI, ARCHIVES_API, DEFAULT_LIMIT, emptyToNull, OTP_API, VIDEOS_API} from "./components/Common"; import {toast} from 'react-semantic-toasts'; function timeoutPromise(ms, promise) { @@ -472,7 +464,7 @@ const replaceFileDatetimes = (files) => { for (let i = 0; i < files.length; i++) { let file = files[i]; if (file['modified']) { - files[i]['modified'] = secondsToDateTime(file['modified']); + files[i]['modified'] = file['modified'] * 1000; } } return files; diff --git a/app/src/components/Channels.js b/app/src/components/Channels.js index 7c1bfaea..721b7f77 100644 --- a/app/src/components/Channels.js +++ b/app/src/components/Channels.js @@ -443,7 +443,7 @@ class ChannelPage extends APIForm { - diff --git a/app/src/components/Common.js b/app/src/components/Common.js index b7a1c6fb..d4ec311b 100644 --- a/app/src/components/Common.js +++ b/app/src/components/Common.js @@ -142,7 +142,7 @@ export function VideoCard({video}) { let imageLabel = null; if (video.favorite) { - imageLabel = {as: 'a', corner: 'left', icon: 'heart', color: 'green'}; + imageLabel = {corner: 'left', icon: 'heart', color: 'green'}; } return (