Skip to content

Commit e6c4e3f

Browse files
authoredOct 11, 2023
Merge pull request #191 from MeasureAuthoringTool/MAT-6185
MAT-6185: update dateTimeField component to use utc adapter.
2 parents 1e0d307 + 43f1204 commit e6c4e3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎react/components/DateTimeField/DateTimeField.jsx

+4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ import InputLabel from "../InputLabel";
44
import { DateTimePicker } from "@mui/x-date-pickers/DateTimePicker";
55
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
66
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
7+
import dayjs from 'dayjs'
8+
import utc from 'dayjs/plugin/utc';
9+
710
import { FormControl } from "@mui/material";
811
import { kebabCase } from "lodash";
912

13+
dayjs.extend(utc)
1014
export const dateTimeTextFieldStyle = {
1115
width: "240px",
1216
borderRadius: "3px",

0 commit comments

Comments
 (0)
Please sign in to comment.