laif-ds
Version:
Design System di Laif con componenti React basati su principi di Atomic Design
13 lines (12 loc) • 310 B
JavaScript
"use client";
function i(e, n, t = "long") {
return new Intl.DateTimeFormat("en-US", {
// Enforces engine to render the time. Without the option JavaScriptCore omits it.
hour: "numeric",
timeZone: e,
timeZoneName: t
}).format(n).split(/\s/g).slice(2).join(" ");
}
export {
i as tzName
};