Skip to content

Commit

Permalink
Merge pull request #193 from MeasureAuthoringTool/MAT-5168-fix
Browse files Browse the repository at this point in the history
MAT-5168: update to use utc from adapter
  • Loading branch information
mcmcphillips authored Oct 12, 2023
2 parents 7ccc519 + 876236d commit a7683fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion react/components/DateTimeField/DateTimeField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { FormControl } from "@mui/material";
import { kebabCase } from "lodash";

dayjs.extend(utc)
dayjs.utc();
export const dateTimeTextFieldStyle = {
width: "240px",
borderRadius: "3px",
Expand Down Expand Up @@ -55,7 +56,7 @@ const DateTimeField = ({ label, dateTimeValue, handleDateTimeChange,disabled })
{`${label}`}
</InputLabel>
<DateTimePicker
value={dateTimeValue ? dateTimeValue : null}
value={dateTimeValue ? dayjs.utc(dateTimeValue) : null}
onChange={handleDateTimeChange}
views={["year", "day", "hours", "minutes"]}
disabled={disabled}
Expand Down
4 changes: 2 additions & 2 deletions react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@madie/madie-design-system",
"version": "1.0.57",
"version": "1.0.58",
"description": "Shared style guide across the Madie program.",
"main": "dist/index.js",
"homepage": "https://github.com/MeasureAuthoringTool/madie-design-system",
Expand Down

0 comments on commit a7683fc

Please sign in to comment.