@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.cjs
CHANGED
|
@@ -6434,10 +6434,16 @@ let KosTimeModelImpl = class {
|
|
|
6434
6434
|
}
|
|
6435
6435
|
async retrieveTimezone() {
|
|
6436
6436
|
const tz = await getTimezone();
|
|
6437
|
+
if (!tz) {
|
|
6438
|
+
this.logger.warn(
|
|
6439
|
+
`Failed to retrieve timezone from system. Timezone is undefined.`
|
|
6440
|
+
);
|
|
6441
|
+
return;
|
|
6442
|
+
}
|
|
6437
6443
|
this.setTimezone(tz);
|
|
6438
6444
|
}
|
|
6439
6445
|
setTimezone(tz) {
|
|
6440
|
-
this.timezone = tz;
|
|
6446
|
+
this.timezone = tz ?? "";
|
|
6441
6447
|
}
|
|
6442
6448
|
/**
|
|
6443
6449
|
* @internal
|