Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Isn't that what I am doing by using getTime() ?


You need seconds. Also make sure your system clock is accurate and that you're in Weebly's time zone.


I got back to it now. Still not working...

 - Divided by 1000. 
 - Changed the clock to Pacific time
 - rounded using either parseInt, Math.round and Mouth.ceil

All failed.


Dude... you're trying too hard on a trivial area.

You only have to be close by 60 seconds give or take, so just hard code in the timestamp: http://www.unixtimestamp.com/

It's a pain in the ass to change every minute, but it works and you'll get on with the rest of it.


Nope. Still not working.

I changed the timezone in my computer, calculated time differences. Everything. What is getting on me is precisely the fact that this is supposed to be so trivial.


I think unix time is set in UTC, not PST. that might help.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: