You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to display departure and arrival times of a flight from New York (UTC-5) to Dallas (UTC-6) and I am currently in Paris (UTC+1). The dates come from an API as ISO formatted with an offset:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to display departure and arrival times of a flight from New York (UTC-5) to Dallas (UTC-6) and I am currently in Paris (UTC+1). The dates come from an API as ISO formatted with an offset:
On the screen I should see respectively:
And not something like
What is the intended way dealing with this in
date-fns
? I have only found suggestions to manually cut off the offset in the string.Beta Was this translation helpful? Give feedback.
All reactions