primarycare-binder 1.1.28 → 1.1.29
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.
- package/dist/index.cjs.js +29 -13
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9535,28 +9535,44 @@ var getImgUrl = function getImgUrl(fileId) {
|
|
|
9535
9535
|
};
|
|
9536
9536
|
|
|
9537
9537
|
var getUtcTime = function getUtcTime(date) {
|
|
9538
|
-
var a = null;
|
|
9539
|
-
|
|
9540
9538
|
if (date) {
|
|
9541
|
-
|
|
9539
|
+
return moment.utc(date).unix();
|
|
9542
9540
|
} else {
|
|
9543
|
-
|
|
9541
|
+
return moment.utc().unix();
|
|
9544
9542
|
}
|
|
9545
|
-
|
|
9546
|
-
a = a.toUTCString();
|
|
9547
|
-
return new Date(a).getTime();
|
|
9548
9543
|
};
|
|
9549
9544
|
|
|
9550
9545
|
var utcTOLocal$1 = function utcTOLocal(date, format) {
|
|
9551
|
-
var Ndate = new Date(
|
|
9552
|
-
var fmt = format ? format : "DD-MM-YYYY";
|
|
9546
|
+
var Ndate = new Date();
|
|
9553
9547
|
|
|
9554
|
-
if (
|
|
9555
|
-
|
|
9548
|
+
if (typeof date === "number") {
|
|
9549
|
+
Ndate = moment.unix(date);
|
|
9556
9550
|
} else {
|
|
9557
|
-
|
|
9551
|
+
Ndate = moment(date);
|
|
9558
9552
|
}
|
|
9559
|
-
|
|
9553
|
+
|
|
9554
|
+
var fmt = format ? format : "DD-MM-YYYY";
|
|
9555
|
+
return moment.utc(Ndate).local().format(fmt);
|
|
9556
|
+
}; // const getUtcTime = (date) => {
|
|
9557
|
+
// let a = null
|
|
9558
|
+
// if (date) {
|
|
9559
|
+
// a = new Date(date)
|
|
9560
|
+
// } else {
|
|
9561
|
+
// a = new Date()
|
|
9562
|
+
// }
|
|
9563
|
+
// a = a.toUTCString()
|
|
9564
|
+
// return ((new Date(a).getTime())/1000)
|
|
9565
|
+
// };
|
|
9566
|
+
// const utcTOLocal = (date, format) => {
|
|
9567
|
+
// let Ndate = new Date(date * 1000);
|
|
9568
|
+
// let fmt = format ? format : "DD-MM-YYYY"
|
|
9569
|
+
// if (format) {
|
|
9570
|
+
// return moment(Ndate).format(fmt);
|
|
9571
|
+
// } else {
|
|
9572
|
+
// return moment(Ndate)
|
|
9573
|
+
// }
|
|
9574
|
+
// };
|
|
9575
|
+
|
|
9560
9576
|
|
|
9561
9577
|
var deg2rad = function deg2rad(deg) {
|
|
9562
9578
|
return deg * (Math.PI / 180);
|