ok, I was bored too so I was taking a look at your code and I have a suggestion. The release date is set for midnight on Oct 18th but your code doesn't take into account my local time zone. So, for instance right now it says that the release is set for about 5 days and 13 hrs but here that would be midnight central time which is two hours before the actual release time of midnight Pacific time. So if you want, here are some code snippets to modify your code so that the time shown will be how exactly how much time is left before midnight Oct 18th in the Pacific time zone regardless of the time zone the user is in.
Change the setcountdown function to:
change the date to:
and change your 'get today's date' part and string creation to:
With those changes, regardless of what time zone I set on my computer, the coundown always counts down from when the game releases in UTC (currently seven hours different from Pacific Time).
Now I could be way off base here, so disregard the changes if a) I'm wrong or b) you don't care.
Change the setcountdown function to:
Code:
function setcountdown(theyear,themonth,theday,thehour,themin,thesec){ yr=theyear;mo=themonth;da=theday;hr=thehour;mn=themin;sc=thesec; }
Code:
setcountdown(2006,10,18,7,0,0)
Code:
var todaym=today.getUTCMonth() var todayd=today.getUTCDate() var todayh=today.getUTCHours() var todaymin=today.getUTCMinutes() var todaysec=today.getUTCSeconds() var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec futurestring=montharray[mo-1]+" "+da+", "+yr+" "+hr+":"+mn+":"+sc
Now I could be way off base here, so disregard the changes if a) I'm wrong or b) you don't care.