@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260418060421 → 0.8.1-dev.20260418061226

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
@@ -1155,7 +1155,9 @@ var DateView = (props) => {
1155
1155
  };
1156
1156
  const getRelativeTime = (dateString) => {
1157
1157
  const now = /* @__PURE__ */ new Date();
1158
- const date = /* @__PURE__ */ new Date(dateString + "Z");
1158
+ const date = new Date(
1159
+ dateString.includes("Z") ? dateString : dateString + "Z"
1160
+ );
1159
1161
  const diffMs = now.getTime() - date.getTime();
1160
1162
  const diffSec = Math.floor(diffMs / 1e3);
1161
1163
  const diffMin = Math.floor(diffSec / 60);
@@ -1180,7 +1182,9 @@ var DateView = (props) => {
1180
1182
  return new Date(valDate.getTime() - offsetMilliseconds);
1181
1183
  };
1182
1184
  const parseAndFormatDate = (dateString, format) => {
1183
- const parsedDate = getLocalDate(dateString);
1185
+ const parsedDate = new Date(
1186
+ dateString.includes("Z") ? dateString : dateString + "Z"
1187
+ );
1184
1188
  if (format === "relative") {
1185
1189
  return getRelativeTime(dateString);
1186
1190
  }
package/dist/index.mjs CHANGED
@@ -167,7 +167,9 @@ var DateView = (props) => {
167
167
  };
168
168
  const getRelativeTime = (dateString) => {
169
169
  const now = /* @__PURE__ */ new Date();
170
- const date = /* @__PURE__ */ new Date(dateString + "Z");
170
+ const date = new Date(
171
+ dateString.includes("Z") ? dateString : dateString + "Z"
172
+ );
171
173
  const diffMs = now.getTime() - date.getTime();
172
174
  const diffSec = Math.floor(diffMs / 1e3);
173
175
  const diffMin = Math.floor(diffSec / 60);
@@ -192,7 +194,9 @@ var DateView = (props) => {
192
194
  return new Date(valDate.getTime() - offsetMilliseconds);
193
195
  };
194
196
  const parseAndFormatDate = (dateString, format) => {
195
- const parsedDate = getLocalDate(dateString);
197
+ const parsedDate = new Date(
198
+ dateString.includes("Z") ? dateString : dateString + "Z"
199
+ );
196
200
  if (format === "relative") {
197
201
  return getRelativeTime(dateString);
198
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260418060421",
3
+ "version": "0.8.1-dev.20260418061226",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",