using date-fns-tz
this is based on create-react-app-with-typescript (https://github.com/mui/material-ui):
Install it and run:
npm install
npm startor:
In most cases you will be fine with saving utc times and displaying local times.
but in some circumstances (like a physical shop opening time) you want to show the time in a specific tz, no matter where the browser is.
this example is how i managed to put that specific tz in a mui time picker.
feedback and suggestions welcome.