I need to convert a timestamp into human readable format. I'd like the resulting human readable format to be the users location (not the computer I deployed my code to).
I currently have this:
let d = 1662835646;
new Date(d * 1000).toLocaleString()
Which gives me this:
9/10/2022, 2:47:26 PM
Which is correct for my timezone (EST) but I don't have a way to test this for other timezones.
Basically all I'm asking is, will the above code work to where a user could be anywhere else in the world and it will show the correct date relevant to THEIR location.
