fix(client): 🐛 fix mui rendering of utc dates

This commit is contained in:
Amruth Pillai
2022-07-30 12:21:05 +02:00
parent 5197f954c0
commit 977fa72dde
9 changed files with 14 additions and 14 deletions

View File

@ -63,7 +63,7 @@ const ResumeInput: React.FC<Props> = ({ type = 'text', label, path, className, m
renderInput={(params) => <TextField {...params} error={false} className={className} />}
onChange={(date: Date | null, keyboardInputValue: string | undefined) => {
isEmpty(keyboardInputValue) && onChangeValue('');
date && dayjs(date).utc().isValid() && onChangeValue(date.toISOString());
date && dayjs(date).utc().isValid() && onChangeValue(dayjs(date).utc().toISOString());
}}
/>
);