PragmaticMates / jquery-final-countdown

GNU General Public License v2.0
76 stars 39 forks source link

The counter keep restarting #17

Open ajifri opened 6 years ago

ajifri commented 6 years ago

Hi The counter keeps restarting once I refresh the page.

I've tryed this code in jquery.final-countdown.js : var defaults = $.extend({ start: '1362139200', end: '1413936000', now: new Date().getTime(),

but ddin't work

Any advice would be appreciated

ClarusDignus commented 6 years ago

I don't know the answer though I assume the issue is your code, not the plugin.

Post your question to https://stackoverflow.com/.

riponhossainchopol commented 4 years ago

I Am Having The Same Problem. ajifry have you find The Solution?

carlosferragut commented 3 years ago

I Am Having The Same Problem. ajifry have you find The Solution?

Hi The counter keeps restarting once I refresh the page.

I've tryed this code in jquery.final-countdown.js : var defaults = $.extend({ start: '1362139200', end: '1413936000', now: new Date().getTime(),

but ddin't work

Any advice would be appreciated

You have to format your now parameter like this:

Math.floor(Date.now() / 1000)