I'm trying to pass this props.data.STDout
which is a string in this format "2022-04-29 14:05:00" from UTC to local time.
I've tried but it doesn't work, do you have any ideas?
let newDate = new Date(props.data.STDout);
let newDate2 = newDate.toString()
Thank you very much!