I have timestamps therefore indicating the UTC +0 time.
I want to get the CT time related to those timestamps considering that the code can run from anywhere in the world.
now I can simply add the -6 Hours offset to those UTC timestamps, but that would not consider the DST possible offset.
And if I check the DST as in this solution I would not consider that the code can be running in a place where the DST was observed while it was not observed in Chicago (CT) during the time the timestamp refers to (there is 3 weeks period, twice a year, where America has DST and Europe does NOT.. or the other way round).
So my question is: at a given date, how can I know the UTC offset for a Time Zone which is not the Local Time Zone?
EDIT:
I tried to use the this solution using
new Date(1558361280000).toLocaleString("en-US", {timeZone: "America/Chicago"})
it returns 5/20/2019, 9:08:00 AM when instead it should have returned 5/20/2019, 3:08:00 PM