I'm developing a site that will have 8 timers, each ending between 30 seconds or a minute apart. The timers endtime will be set server side and sent to the page on page load. I am using Pusher.com to manage other parts of the page (using live events)
Every person that loads the page needs to see the same countdown time no matter where they are. That is why I have chosen to provide the users browser with an endtime, and the counters would be calculated using that end time.
The endtime would be given in UTC
timezone. How would I go about creating a countdown timer that checks a server for the current UTC time and displays a countdown to that endtime?
I'm quite new to javascript as I mainly do backend stuff, so it's a bit of a mind-freeze when it comes to trying to do this across many users around the world.
Any help would be appreciated!