@nocobase/utils 1.6.0-beta.17 → 1.6.0-beta.18

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/lib/date.js +1 -1
  2. package/package.json +2 -2
package/lib/date.js CHANGED
@@ -106,7 +106,7 @@ const toMoment = /* @__PURE__ */ __name((val, options) => {
106
106
  return (0, import_dayjs.dayjs)(val);
107
107
  }
108
108
  if (import_dayjs.dayjs.isDayjs(val)) {
109
- return val.utcOffset(offsetFromString(offset));
109
+ return offset ? val.utcOffset(offsetFromString(offset)) : val;
110
110
  }
111
111
  if (gmt) {
112
112
  return (0, import_dayjs.dayjs)(val).utcOffset(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/utils",
3
- "version": "1.6.0-beta.17",
3
+ "version": "1.6.0-beta.18",
4
4
  "main": "lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -16,5 +16,5 @@
16
16
  "multer": "^1.4.5-lts.1",
17
17
  "object-path": "^0.11.8"
18
18
  },
19
- "gitHead": "f431f7c589bcefd6dcda19a0119a85b0aa192b05"
19
+ "gitHead": "b6981f549765a1f94fe43a18faa0eae9246fdd98"
20
20
  }