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.
@@ -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
- ? (0, moment_1.default)(datentime * 1000)
1108
- : (0, moment_1.default)(datentime);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-utility",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "description": "DrapCode Utility",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",