y200subcontrols 0.0.327 → 0.0.328

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.
@@ -56,11 +56,16 @@ function handleChange(event) {
56
56
  });
57
57
  return;
58
58
  }
59
- const parts = _value.split("-");
60
- const year = Number(parts[0]);
61
- const month = Number(parts[1]);
62
- const dayOfMonth = Number(parts[2]);
63
- const _date = new Date(year, month - 1, dayOfMonth);
59
+ console.log(_value);
60
+ const parts = _value.split("T");
61
+ const datePart = parts[0].split("-");
62
+ const year = Number(datePart[0]);
63
+ const month = Number(datePart[1]);
64
+ const dayOfMonth = Number(datePart[2]);
65
+ const timeParts = parts[1].split(":");
66
+ const hours = Number(timeParts[0]);
67
+ const minutes = Number(timeParts[1]);
68
+ const _date = new Date(year, month - 1, dayOfMonth, hours, minutes);
64
69
  value = _date;
65
70
  dispatch("dateChanged", {
66
71
  date: _date
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "y200subcontrols",
3
- "version": "0.0.327",
3
+ "version": "0.0.328",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",