A
A
Alexander2020-04-25 16:25:05
JavaScript
Alexander, 2020-04-25 16:25:05

How do you work with different time zones?

Now I'm studying the Date object and all the main points are clear to me. Displaying local time is not a problem. But what if you want to display the time in different time zones? In addition, many countries practice daylight savings time and vice versa. What solution do you use in such situations?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
anikavoi, 2020-04-25
@anikavoi

https://medium.com/@toastui/handling-time-zone-in-... The
question is not trivial. Also keep in mind that timezones can be set as "GMT + 3", "Europe / Moscow", "MSK" and all this is the same.

R
Robur, 2020-04-25
@Robur

https://momentjs.com/timezone/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question