@ssgc/alert-console 2.4.3 → 2.4.5

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.es.js CHANGED
@@ -8671,8 +8671,10 @@ function Pc(t) {
8671
8671
  }
8672
8672
  function gs(t, e = "UTC") {
8673
8673
  if (!t) return "-";
8674
- const s = new Date(t), n = $.fromJSDate(s, { zone: "utc" }).setZone(e), r = n.toFormat("MM/dd/yyyy, hh:mm:ss a"), i = n.toJSDate().toLocaleString("en-US", { timeZone: e, timeZoneName: "short" }).split(" ").pop() || "";
8675
- return `${r} (${i})`;
8674
+ const s = $.fromISO(t, { zone: "utc" }).setZone(e);
8675
+ if (!s.isValid) return "-";
8676
+ const n = s.offsetNameShort, r = s.toFormat("ZZZZ"), i = n.startsWith("GMT") || n === r ? r : `${n}/${r}`;
8677
+ return `${s.toFormat("MM/dd/yyyy, hh:mm:ss a")} (${i})`;
8676
8678
  }
8677
8679
  const Uc = {
8678
8680
  Critical: "#FF3B30",