Skip to content

Commit

Permalink
Merge pull request #252 from UnityFoundation-io/bugfix/end-datetime-f…
Browse files Browse the repository at this point in the history
…ilter

Bugfix/end datetime filter
  • Loading branch information
zsbrown97 authored Apr 26, 2024
2 parents c39b81e + c1018d9 commit a9876e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/routes/issues/table/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@
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
if (endDate != undefined) {
endDate = new Date(endDate.getTime() + oneDayInMilliseconds);
}
ctx.applyServiceRequestParams(
{
servicePriority: selectedServicePriority,
Expand Down

0 comments on commit a9876e5

Please sign in to comment.