I have an application built with Reactjs(front-end) and MeteroJS(back-end), I am using material-ui as UI design library. Recently we have implemented a globalization functionality in app, While developing global clock functionalities We have faced an issue with material-ui/DatePicker
. In a search form I tried to create a date picker with user-specified timezone using material-ui/DatePicker
and moment-timezone packages, and I passed the input date like this:
new Date(moment.tz("userTimeZone").endOf('day'))
But the datepicker is automatically converting the date to system local time + specified timezone time. How can I set specified timezone time in my DatePicker?