@kosdev-code/kos-ui-sdk 3.0.24 → 3.0.25
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/index.cjs +7 -1
- package/index.cjs.map +1 -1
- package/index.js +7 -1
- package/index.js.map +1 -1
- package/models/models/kos-time/kos-time-model.d.ts.map +1 -1
- package/package.json +2 -2
- package/testing/index.d.ts +23 -2
- package/testing/index.d.ts.map +1 -1
- package/testing.cjs +21 -1
- package/testing.cjs.map +1 -1
- package/testing.js +21 -1
- package/testing.js.map +1 -1
package/index.js
CHANGED
|
@@ -6435,10 +6435,16 @@ let KosTimeModelImpl = class {
|
|
|
6435
6435
|
}
|
|
6436
6436
|
async retrieveTimezone() {
|
|
6437
6437
|
const tz = await getTimezone();
|
|
6438
|
+
if (!tz) {
|
|
6439
|
+
this.logger.warn(
|
|
6440
|
+
`Failed to retrieve timezone from system. Timezone is undefined.`
|
|
6441
|
+
);
|
|
6442
|
+
return;
|
|
6443
|
+
}
|
|
6438
6444
|
this.setTimezone(tz);
|
|
6439
6445
|
}
|
|
6440
6446
|
setTimezone(tz) {
|
|
6441
|
-
this.timezone = tz;
|
|
6447
|
+
this.timezone = tz ?? "";
|
|
6442
6448
|
}
|
|
6443
6449
|
/**
|
|
6444
6450
|
* @internal
|