Skip to content

Commit

Permalink
added one day to reported to filter
Browse files Browse the repository at this point in the history
Signed-off-by: zsbrown97 <brownz@unityfoundation.io>
  • Loading branch information
zsbrown97 committed Apr 25, 2024
1 parent c39b81e commit 0111da1
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions frontend/src/routes/issues/table/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,25 @@
startDate: Date,
endDate: Date
) {
// Sets endDate to be one day later than what's selected to play nicely with STWUI
const oneDayInMilliseconds = 24 * 60 * 60 * 1000; // Number of milliseconds in one day
let nextEndDate;
if (endDate == undefined) {
nextEndDate = endDate;
} else {
nextEndDate = new Date(endDate.getTime() + oneDayInMilliseconds);
}
// console.log(endDate);
ctx.applyServiceRequestParams(
{
servicePriority: selectedServicePriority,
serviceCode: selectedServiceCodes?.map((s) => Number(s)),
status: statusInput,
startDate: startDate?.toISOString(),
endDate: endDate?.toISOString()
endDate: nextEndDate?.toISOString()
},
$page.url
);
Expand All @@ -152,7 +164,7 @@
<slot slot="side-bar" />
<div slot="main-content" class="relative flex h-full flex-col">
<div
class="m-3 flex items-center justify-end rounded-md border-t-[1px] border-border shadow-md"
class="border-border m-3 flex items-center justify-end rounded-md border-t-[1px] shadow-md"
>
<div class="m-3 flex items-center">
{#if !isSearchFiltersOpen}
Expand Down

0 comments on commit 0111da1

Please sign in to comment.