From 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde Mon Sep 17 00:00:00 2001
From: GitLab Bot <gitlab-bot@gitlab.com>
Date: Mon, 19 Sep 2022 23:18:09 +0000
Subject: Add latest changes from gitlab-org/gitlab@15-4-stable-ee

---
 .../javascripts/cycle_analytics/components/value_stream_filters.vue  | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'app/assets/javascripts/cycle_analytics/components/value_stream_filters.vue')

diff --git a/app/assets/javascripts/cycle_analytics/components/value_stream_filters.vue b/app/assets/javascripts/cycle_analytics/components/value_stream_filters.vue
index f686cd0db95..17decb6b448 100644
--- a/app/assets/javascripts/cycle_analytics/components/value_stream_filters.vue
+++ b/app/assets/javascripts/cycle_analytics/components/value_stream_filters.vue
@@ -57,6 +57,10 @@ export default {
         includeSubgroups: true,
       };
     },
+    currentDate() {
+      const now = new Date();
+      return new Date(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate());
+    },
   },
   multiProjectSelect: true,
   maxDateRange: DATE_RANGE_LIMIT,
@@ -93,6 +97,7 @@ export default {
           v-if="hasDateRangeFilter"
           :start-date="startDate"
           :end-date="endDate"
+          :max-date="currentDate"
           :max-date-range="$options.maxDateRange"
           :include-selected-date="true"
           class="js-daterange-picker"
-- 
cgit v1.2.3

