@sumaris-net/ngx-components 1.23.57 → 1.23.58

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.
@@ -2839,7 +2839,9 @@
2839
2839
  return date1 && (!date2 || date1.isSameOrBefore(date2)) ? date1 : date2;
2840
2840
  };
2841
2841
  DateUtils.max = function (date1, date2) {
2842
- return date1 && (!date2 || date1.isSameOrAfter(date2)) ? date1 : date2;
2842
+ var d1 = fromDateISOString(date1);
2843
+ var d2 = fromDateISOString(date2);
2844
+ return d1 && (!d2 || d1.isSameOrAfter(d2)) ? d1 : d2;
2843
2845
  };
2844
2846
  DateUtils.equals = function (date1, date2) {
2845
2847
  return DateUtils.isSame(date1, date2);