I have following trivial JS code:
document.getElementById ("testLastTime").innerHTML=new Date ('2020-07-01T11:59:45').toLocaleString()
On Chrome, Edge, Firefox (all on Windows) is shows correct date:
7/1/2020, 11:59:45 AM
However on iOS devices this date is interpreted as UTC and following date is shown (I am on PST):
7/1/2020 4:59:45 AM
This code is part of the larger project, where datetime ISO formated string in local time (without TZ) is send to client by the server (Python flask).
What should I do have JS on all devices show the same date?