Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
LK1037

Dynamic Ticker Countdown

Recommended Posts

Is there a way have an ad/web banner dynamically read the local timestamp, calculate and accurately display time remaining—regardless of what timezone the banner is served? If so, how? Can/will it be 100% accurate? We haven't found a codepen element that would be served within the context of a publicly served ad/web banner. Please advise. Thanks to anyone who can shed some light on it. 

 

For example:  An event is 36 hours from starting.

CPU 1 lives in EST zone, sees banner at 27 hours out.

CPU 2 lives in CST zone, sees banner at 12 hours out.

CPU 3 lives in PST zone, sees banner after 3 minutes out.

 

Link to post
Share on other sites

Yeah, this is how banners that have movie or show times are created, "tune in" dates (i.e. Show date, out tomorrow, out today, etc). Use the JavaScript Date object >
https://css-tricks.com/everything-you-need-to-know-about-date-in-javascript/

Depending on your needs, it can be simple or a bit more complex. Typically, with movie or show banners, you just use 3 scenarios or outcomes > Coming out today, tomorrow, or XX days until it reaches tomorrow. Obviously, if you're putting a real countdown where the time is constantly changing or it's giving an actual amount of days or minutes until showtime, it gets a bit more complex.

  • Like 4
Link to post
Share on other sites
1 hour ago, davi said:

Yeah, this is how banners that have movie or show times are created, "tune in" dates (i.e. Show date, out tomorrow, out today, etc). Use the JavaScript Date object >
https://css-tricks.com/everything-you-need-to-know-about-date-in-javascript/

Depending on your needs, it can be simple or a bit more complex. Typically, with movie or show banners, you just use 3 scenarios or outcomes > Coming out today, tomorrow, or XX days until it reaches tomorrow. Obviously, if you're putting a real countdown where the time is constantly changing or it's giving an actual amount of days or minutes until showtime, it gets a bit more complex.

Thanks for your quick input...

 

Yes, we're literally looking for displaying a running countdown to hrs : min : sec left before the event — the "a bit more complex" version you spoke of.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×