So konvertieren Sie die Zeit in Benutzer Timezone in React
const dateToTime = date => date.toLocaleString('en-US', {
hour: 'numeric',
minute: 'numeric'
});
const dateString = "2019-05-05T10:30:00Z";
const userOffset = new Date().getTimezoneOffset()*60*1000;
const localDate = new Date(dateString);
const utcDate = new Date(localDate.getTime() + userOffset);
console.log(`${dateToTime(utcDate)} (${dateToTime(localDate)} Your Time)`);
Inquisitive Ibis