@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260417070529 → 0.8.1-dev.20260417072354
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1885,9 +1885,9 @@ var DateTimeInput = (props) => {
|
|
|
1885
1885
|
const now = /* @__PURE__ */ new Date();
|
|
1886
1886
|
if (props.value) {
|
|
1887
1887
|
const utcDate = new Date(props.value);
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
).
|
|
1888
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
1889
|
+
const local = new Date(utcDate);
|
|
1890
|
+
localvalue = local.getFullYear() + "-" + pad(local.getMonth() + 1) + "-" + pad(local.getDate()) + "T" + pad(local.getHours()) + ":" + pad(local.getMinutes());
|
|
1891
1891
|
timeZoneAbbr = (/* @__PURE__ */ new Date()).toLocaleTimeString("en", { timeZoneName: "short" }).split(" ")[2];
|
|
1892
1892
|
}
|
|
1893
1893
|
const handleKeyDown = (e) => {
|
package/dist/index.mjs
CHANGED
|
@@ -897,9 +897,9 @@ var DateTimeInput = (props) => {
|
|
|
897
897
|
const now = /* @__PURE__ */ new Date();
|
|
898
898
|
if (props.value) {
|
|
899
899
|
const utcDate = new Date(props.value);
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
).
|
|
900
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
901
|
+
const local = new Date(utcDate);
|
|
902
|
+
localvalue = local.getFullYear() + "-" + pad(local.getMonth() + 1) + "-" + pad(local.getDate()) + "T" + pad(local.getHours()) + ":" + pad(local.getMinutes());
|
|
903
903
|
timeZoneAbbr = (/* @__PURE__ */ new Date()).toLocaleTimeString("en", { timeZoneName: "short" }).split(" ")[2];
|
|
904
904
|
}
|
|
905
905
|
const handleKeyDown = (e) => {
|
package/package.json
CHANGED