Skip to content

Commit

Permalink
#378: Add time (23:59) to "to" date, to include the last date.
Browse files Browse the repository at this point in the history
  • Loading branch information
benitsch committed Jul 17, 2024
1 parent db737d4 commit d03475b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/subComponents/DataDownload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,22 @@
}
function getDownloadFilters(): DownloadDataFilter {
return {
const filterValues = {
studyGroupId: filterStudyGroup.value ?? undefined,
participantId: filterParticipant.value ?? undefined,
observationId: filterObservation.value ?? undefined,
from: filterDateRange.value ? filterDateRange.value[0] : undefined,
to: filterDateRange.value ? filterDateRange.value[1] : undefined,
from: undefined,
to: undefined,
};
if (filterDateRange.value && filterDateRange.value.length > 1) {
filterValues.from = filterDateRange.value[0];
const toDate = filterDateRange.value[1];
toDate.setHours(23, 59);
filterValues.to = toDate;
}
return filterValues;
}
const disableStudyGroupFilter: ComputedRef<boolean> = computed(() => {
Expand Down

0 comments on commit d03475b

Please sign in to comment.