@resolveio/client-lib-core 15.1.12 → 15.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/widgets/date-shortcut/date-shortcut.component.mjs +3 -3
- package/fesm2015/resolveio-client-lib-core.mjs +2 -2
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +2 -2
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8727,8 +8727,8 @@ class DateShortcutComponent extends BaseComponent {
|
|
|
8727
8727
|
this.datesChanged.emit([this.startDateObj, this.endDateObj]);
|
|
8728
8728
|
}
|
|
8729
8729
|
else if (this.startDateObjForm && this.endDateObjForm) {
|
|
8730
|
-
let startDate = moment(new Date(this.startDateObjForm.value['year'], this.
|
|
8731
|
-
let endDate = moment(new Date(this.
|
|
8730
|
+
let startDate = moment(new Date(this.startDateObjForm.value['year'], this.startDateObjForm.value['month'] - 1, this.startDateObjForm.value['day'])).toDate();
|
|
8731
|
+
let endDate = moment(new Date(this.endDateObjForm.value['year'], this.endDateObjForm.value['month'] - 1, this.endDateObjForm.value['day'])).toDate();
|
|
8732
8732
|
if (this.shortcutValue === 'Q1') {
|
|
8733
8733
|
startDate = moment().startOf('year').toDate();
|
|
8734
8734
|
endDate = moment().startOf('year').quarter(2).subtract(1, 'days').toDate();
|