uibee 2.7.6 → 2.7.7

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.
@@ -28,11 +28,11 @@ export default function Input({ label, name, type = 'text', placeholder, value,
28
28
  const mm = pad(date.getMinutes());
29
29
  let newValue = '';
30
30
  if (type === 'date')
31
- newValue = `${dd}/${MM}/${yyyy}`;
31
+ newValue = `${yyyy}-${MM}-${dd}`;
32
32
  else if (type === 'time')
33
33
  newValue = `${hh}:${mm}`;
34
34
  else if (type === 'datetime-local')
35
- newValue = `${dd}/${MM}/${yyyy} ${hh}:${mm}`;
35
+ newValue = `${yyyy}-${MM}-${dd}T${hh}:${mm}`;
36
36
  const event = {
37
37
  target: {
38
38
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uibee",
3
- "version": "2.7.6",
3
+ "version": "2.7.7",
4
4
  "description": "Shared components, functions and hooks for reuse across Login projects",
5
5
  "homepage": "https://github.com/Login-Linjeforening-for-IT/uibee#readme",
6
6
  "bugs": {
@@ -59,9 +59,9 @@ export default function Input({
59
59
  const mm = pad(date.getMinutes())
60
60
 
61
61
  let newValue = ''
62
- if (type === 'date') newValue = `${dd}/${MM}/${yyyy}`
62
+ if (type === 'date') newValue = `${yyyy}-${MM}-${dd}`
63
63
  else if (type === 'time') newValue = `${hh}:${mm}`
64
- else if (type === 'datetime-local') newValue = `${dd}/${MM}/${yyyy} ${hh}:${mm}`
64
+ else if (type === 'datetime-local') newValue = `${yyyy}-${MM}-${dd}T${hh}:${mm}`
65
65
 
66
66
  const event = {
67
67
  target: {