+ 1

Converting between timezones in JavaScript

So I recently published SoloChat, a chatting web app. It displays the time a message was sent, but it displays it as it is in the users time zones. It's kinda confusing. How do I convert all the times to the timezone that the user currently is in? https://code.sololearn.com/Wzu6Z5qsFfBG/?ref=app

20th Feb 2020, 7:42 PM
Nerderkips
Nerderkips - avatar
2 Réponses