I need to do a countdown timer to some event using the MomentJS library.
The server sends me the time (let's call it eventTime ), to which the countdown should go, I find out the difference between the current one and output it in HTML. Everything is simple here. The problem is that the server sends time by MSK and the eventTime = moment.utc(time) conversion in the timer function gives me nothing.
How can I calculate the time difference, taking into account the time zones?