Skip to content

Commit 245aba8

Browse files
Merge pull request #62684 from nextcloud/backport/62375/stable33
[stable33] fix(search): Add end date for last 7 and last 30 days
2 parents fe1e577 + 364455a commit 245aba8

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

core/src/components/UnifiedSearch/UnifiedSearchModal.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,11 +770,13 @@ export default defineComponent({
770770
case '7days':
771771
// For 'Last 7 days', start date is 7 days ago, end is today
772772
startDate = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 6, 0, 0, 0, 0)
773+
endDate = new Date(today.getFullYear(), today.getMonth(), today.getDate(), 23, 59, 59, 999)
773774
this.dateFilter.text = t('core', 'Last 7 days')
774775
break
775776
case '30days':
776777
// For 'Last 30 days', start date is 30 days ago, end is today
777778
startDate = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 29, 0, 0, 0, 0)
779+
endDate = new Date(today.getFullYear(), today.getMonth(), today.getDate(), 23, 59, 59, 999)
778780
this.dateFilter.text = t('core', 'Last 30 days')
779781
break
780782
case 'thisyear':

dist/core-unified-search.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-unified-search.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)