PragmaticMates / jquery-final-countdown

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

can you explain values on start/end/now? #2

Closed apklein closed 10 years ago

apklein commented 10 years ago

I don't know why when I set:

start = new Date().getTime(), stop = new Date(2014,3,27,17).getTime(), now = new Date().getTime()

the countdown says: 125 days .....(and starts the countdown)....

can you explain me? (today is 2014/4/27)

PragmaticMates commented 10 years ago

Hi,

do you have public URL? Thanks

PragmaticMates commented 10 years ago

Hi,

  1. Plugin is accepting only unix time (integer). I see that that you are setting Date objects.
  2. Try to use these variables

start = new Date(2014, 4, 1).getTime() // When the counting started end = new Date(2014, 6, 1).getTime() // When it ends now = new Date().getTime()

Cheers