@annalib/anna-core 15.0.13 → 15.0.14

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.
@@ -1673,6 +1673,10 @@ class AnnaFilterService {
1673
1673
  isObjectInTheRange(obj, value, key) {
1674
1674
  let objVal = obj[key];
1675
1675
  let dayjsDate = dayjs(objVal);
1676
+ if (typeof value.fromDate === "string" && typeof value.toDate === "string") {
1677
+ value.fromDate = dayjs(this.dateTimeFormatService.convertNgbDateToMoment(this.dateTimeFormatService.convertToNgbDate(value.fromDate, "DD/MM/YYYY")));
1678
+ value.toDate = dayjs(this.dateTimeFormatService.convertNgbDateToMoment(this.dateTimeFormatService.convertToNgbDate(value.toDate, "DD/MM/YYYY")));
1679
+ }
1676
1680
  let isDateSameAsStartOfTheRange = value.fromDate.isSame(objVal);
1677
1681
  let isDateSameAsEndOfTheRange = value.toDate.isSame(objVal);
1678
1682
  let isDateBetweenTheStartAndEndOfRange = dayjsDate.isBetween(value.fromDate, value.toDate);