I have a timestamp like this:
2021-07-23T23:35:00
When I try to format it as follows
var myDate = new Date("2021-07-23T23:35:00").toLocaleTimeString("en-US", { timeStyle: "short" }).toLowerCase();
Chrome will give me (correctly):
11:35 pm
IE11 gives me:
11:35:00 pm
Safari gives me:
07:35 pm
I've boiled it down to timeStyle: "short", but even after adjusting to:
hour: '2-digit', minute: '2-digit'
Safari still gives me:
07:35 pm
Is there a way to get this with other toLocaleTimeString options?
Thanks!