I am extending MomentDateAdapter for my requirement. When i am selecting a date from the calendar i am getting the correct output but when i manually type something in the input field i get wrong output.
For the selected date i am using _moment.utc({ year, month, date }).locale(navigator.language); to convert the selected value to UTC format but i am not sure on how to do the same when user searches in the input field.
to reproduce:
- Try to select a value from calendar and see the console (notice the date is converted to UTC)
- Now try to add a date manually by typing in and see the console (date is not converted to UTC).