This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch 
1642-data-lake-default-export-period-does-not-work
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to 
refs/heads/1642-data-lake-default-export-period-does-not-work by this push:
     new 4028ab2f3 Fix assignment of default time range in data download dialog 
(#1642)
4028ab2f3 is described below

commit 4028ab2f3640c17b77029d5c472c5c7ec0e3c11b
Author: Dominik Riemer <[email protected]>
AuthorDate: Thu Jul 20 22:54:44 2023 +0200

    Fix assignment of default time range in data download dialog (#1642)
---
 .../select-data/select-data-range/select-data-range.component.ts  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/ui/src/app/core-ui/data-download-dialog/components/select-data/select-data-range/select-data-range.component.ts
 
b/ui/src/app/core-ui/data-download-dialog/components/select-data/select-data-range/select-data-range.component.ts
index 75dd6e281..1c4cf77f8 100644
--- 
a/ui/src/app/core-ui/data-download-dialog/components/select-data/select-data-range/select-data-range.component.ts
+++ 
b/ui/src/app/core-ui/data-download-dialog/components/select-data/select-data-range/select-data-range.component.ts
@@ -44,10 +44,10 @@ export class SelectDataRangeComponent implements OnInit {
     }
 
     initDateSelection() {
-        const endDate = new Date();
-        endDate.setDate(endDate.getDate() - 5);
-        this.datePickerSelection[0] = new Date();
-        this.datePickerSelection[1] = endDate;
+        const startDate = new Date();
+        startDate.setDate(startDate.getDate() - 5);
+        this.datePickerSelection[0] = startDate;
+        this.datePickerSelection[1] = new Date();
         this.dataExportConfig.dateRange = new DateRange(
             this.datePickerSelection[0],
             this.datePickerSelection[1],

Reply via email to