]> git.localhorst.tv Git - alttp.git/commitdiff
schedule sliding window
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 11 Mar 2023 16:17:09 +0000 (17:17 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 11 Mar 2023 16:17:09 +0000 (17:17 +0100)
resources/js/components/pages/Schedule.js

index ffbb69ef611f8deffaeb39ae09af27d0483e5c97..dfac328b57dc484d5605570aee6024fb1e21f514 100644 (file)
@@ -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 => {