The problem is this. The company wants to make an online video tutorial, which requires students to make an appointment and the teacher to get the time to start the class. However, because it is international, the time in each time zone is different, so the front end needs to convert the time into UTC time. Send it to the backend, and then convert the UTC time into local time when getting the data. Please help, how can js realize the conversion between local time and UTC time
At the same time, the Date object also accepts parameters to convert the corresponding parameters into utc
Local To UTC
UTC to Local
new Date().toISOString();