@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 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