diff --git a/assets/vue/views/user/sessions/Past.vue b/assets/vue/views/user/sessions/Past.vue index 9cb2228594..f52dd1c649 100644 --- a/assets/vue/views/user/sessions/Past.vue +++ b/assets/vue/views/user/sessions/Past.vue @@ -18,8 +18,8 @@ const store = useStore() let user = computed(() => store.getters['security/getUser']) -let start = DateTime.local().minus({days: 360}).toISO() -let end = DateTime.local().toISO() +let start = DateTime.local().minus({days: 360}) +let end = DateTime.local() const {sessions} = useSession(user, start, end) diff --git a/assets/vue/views/user/sessions/Upcoming.vue b/assets/vue/views/user/sessions/Upcoming.vue index e7e675edcd..c07ec61654 100644 --- a/assets/vue/views/user/sessions/Upcoming.vue +++ b/assets/vue/views/user/sessions/Upcoming.vue @@ -17,7 +17,7 @@ const store = useStore(); let user = computed(() => store.getters['security/getUser']); -let start = DateTime.local().toISO() +let start = DateTime.local() const {sessions} = useSession(user, start) diff --git a/assets/vue/views/user/sessions/session.js b/assets/vue/views/user/sessions/session.js index 098e410b3c..c1db87d218 100644 --- a/assets/vue/views/user/sessions/session.js +++ b/assets/vue/views/user/sessions/session.js @@ -34,7 +34,7 @@ const includeStartDateIfExist = (variables, start) => { if (!DateTime.isDateTime(start)) { console.error("You should pass a DateTime instance to useSession start parameter") } - variables.afterStartDate = start + variables.afterStartDate = start.toISO() } return variables @@ -45,7 +45,7 @@ const includeEndDateIfExist = (variables, end) => { if (!DateTime.isDateTime(end)) { console.error("You should pass a DateTime instance to useSession end parameter") } - variables.beforeEndDate = end + variables.beforeEndDate = end.toISO() } return variables