primary_care_admin_binder 0.1.10 → 0.1.11

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 +10 -12
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -8000,28 +8000,26 @@ var makeName = function makeName() {
8000
8000
  };
8001
8001
 
8002
8002
  var getUtcTime = function getUtcTime(date) {
8003
+ var a = null;
8004
+
8003
8005
  if (date) {
8004
- return moment.utc(date).unix();
8006
+ a = new Date(moment(date));
8005
8007
  } else {
8006
- return moment.utc().unix();
8008
+ a = new Date(date);
8007
8009
  }
8010
+
8011
+ a = a.toUTCString();
8012
+ return new Date(a).getTime();
8008
8013
  };
8009
8014
 
8010
8015
  var utcTOLocal = function utcTOLocal(date, format) {
8011
- var Ndate = new Date();
8012
-
8013
- if (typeof date === "number") {
8014
- Ndate = moment.unix(date);
8015
- } else {
8016
- Ndate = moment(date);
8017
- }
8018
-
8016
+ var Ndate = new Date(date);
8019
8017
  var fmt = format ? format : "DD-MM-YYYY";
8020
8018
 
8021
8019
  if (format) {
8022
- return moment.utc(Ndate).local().format(fmt);
8020
+ return moment(Ndate).format(fmt);
8023
8021
  } else {
8024
- return moment.utc(Ndate).local();
8022
+ return moment(Ndate);
8025
8023
  }
8026
8024
  };
8027
8025
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primary_care_admin_binder",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",