Hi,
I'd like to show whether a business is open or not depending on the opening times and the real time of the time zone of the business (not the server or PC time).
My idea is to have a JavaScript clock corrected/synchronized with NIST time on page load (or in regular intervals).
Should not be too complicated and I've already begun coding. Trouble might start when summer and winter time must be taken into account. How can I realize that?
What do you think of the idea and my approach? Maybe someone has already worked on this and can help me with his/her solution?!
Thanks for any advice, regards from Berlin,
Sebastian
I'd like to show whether a business is open or not depending on the opening times and the real time of the time zone of the business (not the server or PC time).
My idea is to have a JavaScript clock corrected/synchronized with NIST time on page load (or in regular intervals).
Should not be too complicated and I've already begun coding. Trouble might start when summer and winter time must be taken into account. How can I realize that?
What do you think of the idea and my approach? Maybe someone has already worked on this and can help me with his/her solution?!
Thanks for any advice, regards from Berlin,
Sebastian
Comment