@signal24/vue-foundation 4.3.1 → 4.3.2
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.
|
@@ -968,7 +968,7 @@ function Qt(e, t) {
|
|
|
968
968
|
return ((a = e.attributes.getNamedItem("placeholder")) == null ? void 0 : a.value) ?? "";
|
|
969
969
|
let n = "";
|
|
970
970
|
const i = t.value.replace(/ /g, "T").replace(/\.\d+Z$/, "Z"), s = e.attributes.getNamedItem("local") !== null ? i.replace(/Z$/, "") : i.replace(/(Z|\+00:00)?$/, "Z"), o = new Date(s);
|
|
971
|
-
|
|
971
|
+
e.attributes.getNamedItem("display-utc") !== null && o.setMinutes(o.getMinutes() - o.getTimezoneOffset());
|
|
972
972
|
let r = (m = e.attributes.getNamedItem("format")) == null ? void 0 : m.value;
|
|
973
973
|
if (!r && e.attributes.getNamedItem("relative-date") !== null) {
|
|
974
974
|
const f = /* @__PURE__ */ new Date();
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ function getDateTimeValue(el: HTMLElement, binding: DirectiveBinding<string>) {
|
|
|
23
23
|
const tzDateStr = el.attributes.getNamedItem('local') !== null ? isoDateStr.replace(/Z$/, '') : isoDateStr.replace(/(Z|\+00:00)?$/, 'Z');
|
|
24
24
|
const theDate = new Date(tzDateStr);
|
|
25
25
|
|
|
26
|
-
if (
|
|
26
|
+
if (el.attributes.getNamedItem('display-utc') !== null) {
|
|
27
27
|
theDate.setMinutes(theDate.getMinutes() - theDate.getTimezoneOffset());
|
|
28
28
|
}
|
|
29
29
|
|