@trudb/tru-common-lib 0.1.886 → 0.1.888

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.
@@ -10647,10 +10647,8 @@ class TruFormatter {
10647
10647
  };
10648
10648
  dateShort = (cfg) => {
10649
10649
  var v = cfg.$;
10650
- if (v === null || typeof v === 'undefined')
10651
- return null;
10652
- if (!this.isDate(v))
10653
- return null;
10650
+ if (!v || !this.isDate(v))
10651
+ return 'mm/dd/yyyy';
10654
10652
  v = new Date(v);
10655
10653
  var utc = new Date(v.getUTCFullYear(), v.getUTCMonth(), v.getUTCDate());
10656
10654
  return this.formatDate(utc, 'MM/dd/yyyy');
@@ -10658,7 +10656,7 @@ class TruFormatter {
10658
10656
  datetimeShort = (cfg) => {
10659
10657
  var v = cfg.$;
10660
10658
  if (!v)
10661
- return 'MM/dd/yyyy hh:mm a';
10659
+ return 'mm/dd/yyyy hh:mm a';
10662
10660
  return this.formatDate(v, 'MM/dd/yyyy hh:mm a');
10663
10661
  };
10664
10662
  datetimespanShort = (cfg) => {