From b9059d978d2b86e15aa7c3846ef71fc62f711486 Mon Sep 17 00:00:00 2001 From: zephex-alt <166333351+zephex-alt@users.noreply.github.com> Date: Tue, 30 Apr 2024 04:08:49 +0000 Subject: small fixes --- src/app/anime/history/continueWatching/cw.module.css | 2 +- src/app/anime/history/continueWatching/page.jsx | 2 +- src/app/anime/history/storeData.js | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/app/anime/history') diff --git a/src/app/anime/history/continueWatching/cw.module.css b/src/app/anime/history/continueWatching/cw.module.css index e473513..ce70c30 100644 --- a/src/app/anime/history/continueWatching/cw.module.css +++ b/src/app/anime/history/continueWatching/cw.module.css @@ -58,4 +58,4 @@ .animeEntry img { width: 35%; } -} \ No newline at end of file +} diff --git a/src/app/anime/history/continueWatching/page.jsx b/src/app/anime/history/continueWatching/page.jsx index d9bc6d1..4b18adf 100644 --- a/src/app/anime/history/continueWatching/page.jsx +++ b/src/app/anime/history/continueWatching/page.jsx @@ -43,7 +43,7 @@ const ContinueWatching = () => {

Last watched on: {item.date} at{" "} - {item.time} + {item.time} hours

{ if (element.name === watchData.name) { let episode = watchData.episode; + let date = `${currentDate.getDate()}-${String( + currentDate.getMonth() + 1 + ).padStart(2, "0")}`; + let time = `${currentDate.getHours()}:${String( + currentDate.getMinutes() + ).padStart(2, "0")}`; element.episode = episode; + element.date = date; + element.time = time; found = true; } }); -- cgit v1.2.3