Share Posted September 25, 2019 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
Share Posted September 26, 2019 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. 4 Link to post Share on other sites
Author Share Posted September 26, 2019 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
Share Posted September 26, 2019 I just PMed you. I can share my files, just not publicly. Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now