This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 780a65911 Fix assignment of default time range in data download dialog
(#1642) (#1783)
780a65911 is described below
commit 780a65911f95ebae6d277427de43bd22f8d44d7a
Author: Dominik Riemer <[email protected]>
AuthorDate: Fri Jul 21 08:11:52 2023 +0200
Fix assignment of default time range in data download dialog (#1642) (#1783)
---
.../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],