hron-ts 0.4.2 → 0.5.0

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/dist/index.js CHANGED
@@ -556,12 +556,7 @@ function unitDisplay(interval, unit) {
556
556
  // src/eval.ts
557
557
  import { Temporal } from "@js-temporal/polyfill";
558
558
  function resolveTz(tz) {
559
- if (tz) return tz;
560
- try {
561
- return Temporal.Now.timeZoneId();
562
- } catch {
563
- return "UTC";
564
- }
559
+ return tz ?? "UTC";
565
560
  }
566
561
  function toPlainTime(tod) {
567
562
  return Temporal.PlainTime.from({ hour: tod.hour, minute: tod.minute });