@madie/madie-design-system 1.0.56 → 1.0.58

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.
@@ -4,9 +4,14 @@ import InputLabel from "../InputLabel";
4
4
  import { DateTimePicker } from "@mui/x-date-pickers/DateTimePicker";
5
5
  import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
6
6
  import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
7
+ import dayjs from 'dayjs'
8
+ import utc from 'dayjs/plugin/utc';
9
+
7
10
  import { FormControl } from "@mui/material";
8
11
  import { kebabCase } from "lodash";
9
12
 
13
+ dayjs.extend(utc)
14
+ dayjs.utc();
10
15
  export const dateTimeTextFieldStyle = {
11
16
  width: "240px",
12
17
  borderRadius: "3px",
@@ -51,7 +56,7 @@ const DateTimeField = ({ label, dateTimeValue, handleDateTimeChange,disabled })
51
56
  {`${label}`}
52
57
  </InputLabel>
53
58
  <DateTimePicker
54
- value={dateTimeValue ? dateTimeValue : null}
59
+ value={dateTimeValue ? dayjs.utc(dateTimeValue) : null}
55
60
  onChange={handleDateTimeChange}
56
61
  views={["year", "day", "hours", "minutes"]}
57
62
  disabled={disabled}