@fluxhub/fluxhub-lib 9.0.71 → 9.0.72

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.
@@ -271,6 +271,8 @@ var UtilityService = /** @class */ (function () {
271
271
  if (dt.length != 10)
272
272
  return null;
273
273
  var a = dt.split('-');
274
+ if (a[0].length < 4)
275
+ return null;
274
276
  return new Date(parseInt(a[0]), parseInt(a[1]) - 1, parseInt(a[2]));
275
277
  }
276
278
  //console.log(dt);/
@@ -294,6 +296,8 @@ var UtilityService = /** @class */ (function () {
294
296
  if (f == 5)
295
297
  a = ab[0].split('-');
296
298
  var b = ab[1].split(':');
299
+ if (a[0].length < 4)
300
+ return null;
297
301
  // console.log("a[0]): "+a[0]+"a[1] :"+a[1]+" a[2]"+a[2]);
298
302
  // console.log(new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2]),parseInt(b[0]),parseInt(b[1]),parseInt(b[2])));
299
303
  return new Date(parseInt(a[0]), parseInt(a[1]) - 1, parseInt(a[2]), parseInt(b[0]), parseInt(b[1]), 0);
@@ -5864,7 +5868,7 @@ var FHGridComponent = /** @class */ (function () {
5864
5868
  filter_v = filter_v + ' and ';
5865
5869
  filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) + "";
5866
5870
  }
5867
- else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
5871
+ else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) != 'dbnull') {
5868
5872
  var q = '';
5869
5873
  if (obj_filtro.type == "greaterThan")
5870
5874
  q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
@@ -5878,7 +5882,7 @@ var FHGridComponent = /** @class */ (function () {
5878
5882
  q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5879
5883
  if (obj_filtro.type == "greaterThanOrEqual")
5880
5884
  q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
5881
- console.log(obj_filtro, ' -> ', q);
5885
+ console.log('LOG DT: ', obj_filtro, ' -> ', q);
5882
5886
  filter_v = filter_v + q;
5883
5887
  }
5884
5888
  filter_v = filter_v + ' )';