@sumaris-net/ngx-components 1.22.12-rc3 → 1.22.12-rc4

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.
@@ -2900,10 +2900,12 @@
2900
2900
  // Already a moment object: use it
2901
2901
  if (!value || momentImported.isMoment(value))
2902
2902
  return value;
2903
- // Parse the input value, as a date only
2904
- var dateOnly = moment$1(value, DATE_PATTERN);
2905
- if (dateOnly.isValid())
2906
- return DateUtils.markNoTime(dateOnly);
2903
+ if (typeof value === 'string' && value.length === 10) {
2904
+ // Parse the input value, as a date only
2905
+ var dateOnly = moment$1(value, DATE_PATTERN);
2906
+ if (dateOnly.isValid())
2907
+ return DateUtils.markNoTime(dateOnly);
2908
+ }
2907
2909
  // Parse the input value, as a ISO date time
2908
2910
  var date = moment$1(value, DATE_ISO_PATTERN);
2909
2911
  if (date.isValid())