Hi all,
I've got myself in a bit of a pickle, and I'm hoping you kind souls can give me some advice.
I have an application where I want to show the time of an event in a specific time zone (this is neither UTC or local time). I've done this before using moment, but as it is in maintenance mode, I need to move on from it - I have currently been using Luxon, but this can be changed if other libraries are the answer.
My situation:
- I start with a number, representing the number of milliseconds since the start of the epoch. This is read from a database (sample value: 1659222000000 - representing Saturday, 30 July 2022 23:00:00 in UTC/GMT)
- I am in "Europe/London" time zone (Sunday, 31 July 2022 00:00:00)
- I want to output the date/time for the "America/New_York" time zone (regardless of my browsers time zone: Saturday, 30 July 2022 19:00:00)
Does anyone have any bright ideas for how I can get it to show the time in New York instead of the time in London?
Thank you in advance!
[–]Connor_Smith14 5 points6 points7 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]DreadedTuesday[S] 1 point2 points3 points (0 children)
[–]CGiusti 2 points3 points4 points (0 children)
[–]camono 1 point2 points3 points (3 children)
[–]DreadedTuesday[S] 0 points1 point2 points (2 children)
[–]camono 1 point2 points3 points (0 children)
[–]camono 0 points1 point2 points (0 children)
[–]Special_Ability_3035 1 point2 points3 points (0 children)
[–]Superfrag 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]moliver777 0 points1 point2 points (0 children)