Clayton_Bigsby
Dumptruck
+6|7265|ATX
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:

Code:

function setcountdown(theyear,themonth,theday,thehour,themin,thesec){
yr=theyear;mo=themonth;da=theday;hr=thehour;mn=themin;sc=thesec;

}
change the date to:

Code:

setcountdown(2006,10,18,7,0,0)
and change your 'get today's date' part and string creation to:

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
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.
Towelly
It's A State Of Mind
+399|7036|Your attic

liquidat0r wrote:

I implemented into a PunBB forum! yay!

http://sandbox.kntl.co.uk/2142.php

If anyone wants the code, its here:

http://sandbox.kntl.co.uk/2142.phps
"A place where I can screw up without anyone seeing it."

Not any more
Lt_Rapt0r
Member
+10|6868
nicelly done clayton... i kne there was a way but just didnt want to get too much into it since i finally got it to work. your way is alot simpler of what i was planning to do...

so here is the one for UTC

www.giorgiodesignz.com/battlefield_utc.html

EDITED FIRST POST TO SHOW ALL THREE

Last edited by Lt_Rapt0r (2006-10-12 10:08:02)

..teddy..jimmy
Member
+1,393|7094
10,9,8,7,6,5,4,3,2,1,0 countdown has finished
Lt_Rapt0r
Member
+10|6868

..teddy..jimmy wrote:

10,9,8,7,6,5,4,3,2,1,0 countdown has finished
lol inpatient??
Kmar
Truth is my Bitch
+5,695|7046|132 and Bush

Cool using on a new site, thx http://host576.ipowerweb.com/~our2142c/
(domain hasn't resolved yet) will be http://our2142.com .
Thx again.
Xbone Stormsurgezz
Ikarti
Banned - for ever.
+231|7154|Wilmington, DE, US
I wouldn't be surprised at a small spike in suicides in about a week.
[J5]Dirrty.Magic
Member
+35|7128
Nice counter, man. Thats looks pretty sweet.

I have noticed that the release time has changed for the U.S.:
http://bf2142fever.com/ stated that it has been pushed back.
and was discussed somewhat here.

The new US release seems to be Wednesday the 18th @ 10 AM PDT.
Volatile
Member
+252|7149|Sextupling in Empire

[J5]Dirrty.Magic wrote:

The new US release seems to be Wednesday the 18th @ 10 AM PDT.
Noticed this on the downloader. Why can't these bastards just pick a date and stick with it?!
[J5]Dirrty.Magic
Member
+35|7128

Volatile_Squirrel wrote:

[J5]Dirrty.Magic wrote:

The new US release seems to be Wednesday the 18th @ 10 AM PDT.
Noticed this on the downloader. Why can't these bastards just pick a date and stick with it?!
They like to play games with my <3.
Lt_Rapt0r
Member
+10|6868

[J5]Dirrty.Magic wrote:

Nice counter, man. Thats looks pretty sweet.

I have noticed that the release time has changed for the U.S.:
http://bf2142fever.com/ stated that it has been pushed back.
and was discussed somewhat here.

The new US release seems to be Wednesday the 18th @ 10 AM PDT.
really?? thats awesome! lol

I couldnt get my game until the 18th 10 AM EST anyways but now i am getting it 3 hours before
Kmar
Truth is my Bitch
+5,695|7046|132 and Bush

Java noob here, where can I reduce the font size of the counter?
Xbone Stormsurgezz
Lt_Rapt0r
Member
+10|6868

Code:

var countdownwidth='990px' 
var countdownheight='20px' 
var countdownbgcolor='black' 
var opentags='<center><font face="Arial" size="6" color="white"><b>' 
var closetags='</b></font></center>'

Last edited by Lt_Rapt0r (2006-10-13 12:34:14)

Kmar
Truth is my Bitch
+5,695|7046|132 and Bush

Lt_Rapt0r wrote:

Code:

var countdownwidth='990px' 
var countdownheight='20px' 
var countdownbgcolor='black' 
var opentags='<center><font face="Arial" size="6" color="white"><b>' 
var closetags='</b></font></center>'
Inspired by you .
http://our2142.com/
Xbone Stormsurgezz

Board footer

Privacy Policy - © 2025 Jeff Minard