Dynadot

[Javascript] with timezone

Spaceship Spaceship
Watch
HTML:
now = new Date();

servernow = new Date("<? echo $now; ?>");

if (timerflag == 0) {
	diff = servernow.getTime() - now.getTime() - <number> ;
	timerflag = 1;
}

I would like to minus 14 at the <number> field.

How do i modify it?
Please advice.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
-14 is the hour? day? or what.

Because now() will give you a full date.
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back