Damian Krzeminski wrote:
Andrei Cristian Niculae wrote:
Damian Krzeminski wrote:
Andrei Cristian Niculae wrote:
Hi all,

I have a UI proposal for displaying time and date in the UI, XCF-2744 (
The time will be rendered with javascript, so it will update in real-time. And of course, it will be localized. Each time a new page is rendered, the current server date will be passed as a parameter to the javascript script, which will afterwards take over updating the time.

Why not just get the time once every 30 seconds from the server? We'll be off by 15 seconds on average: that's seems to be good enough?
That's also an option, but I guess that even with the method I proposed, time shouldn't get off by more than a minute in an hour (If it does, the CPU timing must be really broken :) ). And a session times out after 15 minutes. In both situations we'd have to query the server for the current time when a page is rendered, so there's really not much difference there.

I assumed querying server every time we want to display time is simpler than querying it once and starting our own times. And if we query the server we are going to notice strange jumps without refreshing the page.
Got it now. I was a bit confused.
I thought you meant starting our own timers and synchronize them every 30 seconds.
Much easier the way you proposed.

Thanks,
Andrei
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to