From: Daniel Karbach Date: Sat, 11 Mar 2023 16:17:09 +0000 (+0100) Subject: schedule sliding window X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=c5dd46ab0c59ad57b6443224829a6acbe393b869;hp=9c8e6581de9599f34d231a141134af015cb28be5;p=alttp.git schedule sliding window --- diff --git a/resources/js/components/pages/Schedule.js b/resources/js/components/pages/Schedule.js index ffbb69e..dfac328 100644 --- a/resources/js/components/pages/Schedule.js +++ b/resources/js/components/pages/Schedule.js @@ -48,8 +48,8 @@ const Schedule = ({ user }) => { axios.get(`/api/episodes`, { signal: controller.signal, params: { - after: moment().startOf('day').subtract(behind, 'days').toISOString(), - before: moment().startOf('day').add(ahead + 1, 'days').toISOString(), + after: moment().subtract(8, 'hours').subtract(behind, 'days').toISOString(), + before: moment().add(16, 'hours').add(ahead, 'days').toISOString(), ...filter, }, }).then(response => {