Use MomentJS to display a countdown accordingly to the selected timezone no matter the localtime your computer is.
Why use MomentJS
Date object has support for timezones, but by default are naive – does not have any information about the timezone – and are localized according to where is run:
– From: Mozilla Developer Network
MomentJS is a great piece of open-source project, is stable, well maintained and have a great support to manage and convert the timezone aware
Date objects. Is good to remember that it’s a best practice to always store and retreive dates from the server in the UTC.
From the beginning, this project aimed to create an easy to use and customizable countdown plugin, people often have a hard time do disassociate the timezone problem from the former because they look the same but they are not.
Keep in mind that this project will NEVER support a timezone aware version out-of-the box.