primarycare-binder 1.1.25 → 1.1.26

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +12 -9
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -9535,24 +9535,27 @@ var getImgUrl = function getImgUrl(fileId) {
9535
9535
  };
9536
9536
 
9537
9537
  var getUtcTime = function getUtcTime(date) {
9538
+ var a = null;
9539
+
9538
9540
  if (date) {
9539
- return moment.utc(date).unix();
9541
+ a = new Date(moment(date));
9540
9542
  } else {
9541
- return moment.utc().unix();
9543
+ a = new Date(date);
9542
9544
  }
9545
+
9546
+ a = a.toUTCString();
9547
+ return new Date(a).getTime();
9543
9548
  };
9544
9549
 
9545
9550
  var utcTOLocal$1 = function utcTOLocal(date, format) {
9546
- var Ndate = new Date();
9551
+ var Ndate = new Date(date);
9552
+ var fmt = format ? format : "DD-MM-YYYY";
9547
9553
 
9548
- if (typeof date === "number") {
9549
- Ndate = moment.unix(date);
9554
+ if (format) {
9555
+ return moment(Ndate).format(fmt);
9550
9556
  } else {
9551
- Ndate = moment(date);
9557
+ return moment(Ndate);
9552
9558
  }
9553
-
9554
- var fmt = format ? format : "DD-MM-YYYY";
9555
- return moment.utc(Ndate).local().format(fmt);
9556
9559
  };
9557
9560
 
9558
9561
  var deg2rad = function deg2rad(deg) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primarycare-binder",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",