@fluxhub/fluxhub-lib 1.0.388 → 1.0.389

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.
@@ -760,18 +760,15 @@
760
760
  //console.log(dt);/
761
761
  //console.log(dt.length);
762
762
  if (f == 2) {
763
- if (dt.length >= 19) {
764
- dt = dt.substring(0, 19);
765
- /** @type {?} */
766
- var ab = dt.split('T');
767
- /** @type {?} */
768
- var a = ab[0].split('-');
769
- /** @type {?} */
770
- var b = ab[1].split(':');
771
- return new Date(dt);
772
- // console.log(new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2]),parseInt(b[0]),parseInt(b[1]),parseInt(b[2])));
773
- // return new Date(parseInt(a[0]), parseInt(a[1]) - 1, parseInt(a[2]), parseInt(b[0]), parseInt(b[1]), parseInt(b[2]));
774
- }
763
+ // if (dt.length >= 19) {
764
+ // dt = dt.substring(0, 19);
765
+ // var ab: Array<string> = dt.split('T');
766
+ // var a: Array<string> = ab[0].split('-');
767
+ ///var b: Array<string> = ab[1].split(':');
768
+ return new Date(dt);
769
+ // console.log(new Date(parseInt(a[0]),parseInt(a[1])-1,parseInt(a[2]),parseInt(b[0]),parseInt(b[1]),parseInt(b[2])));
770
+ // return new Date(parseInt(a[0]), parseInt(a[1]) - 1, parseInt(a[2]), parseInt(b[0]), parseInt(b[1]), parseInt(b[2]));
771
+ // }
775
772
  }
776
773
  if (f == 3) {
777
774
  if (dt.length >= 16) {