Is there any way we could have an option to count down by interval, meaning instead of counting down to 2008-02-17T08:00:00-02:00 count down 129600 seconds.
This would make Automated Logout more accurate when the users computer clock and the servers clock are not in sync.
Thanks
Comments
Comment #1
jvandervort commentedNot sure how you'd want that implemented. We save the timer start date/time in the node/block directly,
so if we used a interval or duration, every time you reloaded the page you'd start at 129600 seconds again
(and again, and again...)
Comment #2
jrglasgow commentedWhat would be the point, with the automated logout module every time you load the page you want the timer to start again, say your timeout before logging off is 1 hour, every time you load the page you want the timer to start with 1 hour.
With my test server testing automated logout I noticed that the timer would start and get down to 30 seconds left and the page would refresh, which should have happened about 40 seconds later according to the timer, but the system clocks on the server and the client machine weren't in sync, something you can't always guarantee. I would consider this fine when just counting down to a date in the future, but when you are counting down to an event that will be happening on the client and the date-time was determined by the server.
The method of reloading the page is with "" a meta tag, unfortunately the meta tag does not support giving it a date-time, just a delay in seconds, if I could put a date-time code in the meta tag it would be the easiest way to proceed.
I hope I have been able to make reasoning clear.
Comment #3
jvandervort commentedYes, time sync between the server and the client is a problem.
We could:
Pad the countdown timer so it is worse case (say have the countdown timer be 60 seconds ahead of the server),
or perhaps send the now() time from the server to the client (with latency problems from the internet).
There is no 'exact' fix for this, since the server controls the logout.
Comment #4
jvandervort commentedAdded support for server time-sync in the DRUPAL-6.x-2.4 version.
This should get us closer. I don't know how much better we can get.
Comment #5
Umayal commentedHow to count the days between date and time
I am using following code , but days not caluculated
I get the value of start and end date buy $diff cannot return any value.
If I use hours, It count the hours.
I use D7.12
above code is right otherwise It need any change?
pls help me.
Comment #6
jvandervort commented@umayal,
Issue tracker is closed for the countdown timer.