drapcode-utility 2.7.2 → 2.7.3
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/build/utils/util.js +2 -2
- package/package.json +1 -1
package/build/utils/util.js
CHANGED
|
@@ -1104,8 +1104,8 @@ const evaluateJSLogic = function (expression, data, user, envConstants) {
|
|
|
1104
1104
|
exports.evaluateJSLogic = evaluateJSLogic;
|
|
1105
1105
|
const formatDate = function (formatType, datentime, timezone, unixType, offset = false) {
|
|
1106
1106
|
let formatDateNTime = unixType && unixType === "SEC"
|
|
1107
|
-
?
|
|
1108
|
-
:
|
|
1107
|
+
? moment_1.default.utc(datentime * 1000)
|
|
1108
|
+
: moment_1.default.utc(datentime);
|
|
1109
1109
|
if (offset) {
|
|
1110
1110
|
formatDateNTime = formatDateNTime.utcOffset(timezone);
|
|
1111
1111
|
}
|