@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.
- package/bundles/sumaris-net.ngx-components.umd.js +3 -1
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/dates.js +4 -2
- package/fesm2015/sumaris-net.ngx-components.js +3 -1
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/dates.d.ts +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -2839,7 +2839,9 @@
|
|
|
2839
2839
|
return date1 && (!date2 || date1.isSameOrBefore(date2)) ? date1 : date2;
|
|
2840
2840
|
};
|
|
2841
2841
|
DateUtils.max = function (date1, date2) {
|
|
2842
|
-
|
|
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);
|