New Forum Features

Started by CowbellGuy, October 24, 2006, 11:01:20 AM

Previous topic - Next topic

Ben Rocky '04

Age:
I'm in Arizona, and the RMU game is over, but the ELF clock is ticking down to a 7pm MST start time instead of an 7pm EDT start time.  So, out here, it appears that the game is starting in 27 minutes.  LGR!!

Liz '05

[quote Ben Rocky 04]Age:
I'm in Arizona, and the RMU game is over, but the ELF clock is ticking down to a 7pm MST start time instead of an 7pm EDT start time.  So, out here, it appears that the game is starting in 27 minutes.  LGR!![/quote]

I get the feeling that the count-down is picking up the time on my computer, rather than the time set in the control panel.  I get the same thing with Central (computer), even though my eLF setting is Eastern.

Ben Rocky '04

mountain standard time............. SUCKS
mountain standard time..............SUCKS
mountain standard time..............SUCKS

LETS GO (back) EAST

*applause*

CowbellGuy

Yeah, it's javascript so it's all client side and I'm not sure it can tell what your time zone is. I'm working on a way to feed it the inital time form the server side.
"[Hugh] Jessiman turned out to be a huge specimen of something alright." --Puck Daddy

ftyuv

Why not use the user-defined timezone, and just have the javascript add or subtract its number using that?

CowbellGuy

If you're talking about the one set in the forum, that's server-side.
"[Hugh] Jessiman turned out to be a huge specimen of something alright." --Puck Daddy

jtwcornell91

[quote Ben Rocky 04]Age:
I'm in Arizona, and the RMU game is over, but the ELF clock is ticking down to a 7pm MST start time instead of an 7pm EDT start time.  So, out here, it appears that the game is starting in 27 minutes.  LGR!![/quote]

Try being on Central European Time and having the countdown think the games start about 6 hours earlier than they do.

Beeeej

Normally each post in a thread has a little triangle bullet (carat.gif) to the left of its subject line when you're looking at the threaded view.  What does it mean when a post has two little triangle bullets?  E.g., http://elf.elynah.com/read.php?1,100003,100115#msg-100115
Beeeej, Esq.

"Cornell isn't an organization.  It's a loose affiliation of independent fiefdoms united by a common hockey team."
   - Steve Worona

jtwcornell91

[quote Beeeej]Normally each post in a thread has a little triangle bullet (carat.gif) to the left of its subject line when you're looking at the threaded view.  What does it mean when a post has two little triangle bullets?  E.g., http://elf.elynah.com/read.php?1,100003,100115#msg-100115[/quote]

It means there are more than 9 levels of intendation, so some are suppressed in the visual display.

CowbellGuy

"[Hugh] Jessiman turned out to be a huge specimen of something alright." --Puck Daddy

Beeeej

...except that from what I can tell from looking at that thread, no levels are suppressed on visual display.  What am I missing?
Beeeej, Esq.

"Cornell isn't an organization.  It's a loose affiliation of independent fiefdoms united by a common hockey team."
   - Steve Worona

Liz '05

Your link led to Trotsky's reply to Section A Banshee's post.  They're at the same indentation on threaded view, but Trotsky's has the extra triangle next to it, indicating that it's another level being compressed to save space.

Does that make sense?

Beeeej

No, because what I'm seeing is that Trotsky's post is already intented further than Section A Banshee's post.  The first of the two triangles to the left of Trotsky's subject line is lined up vertically with the one triangle to the left of S.A.B.'s subject line, but that's the only way in which they're indented the "same" amount - the subject line itself is indented further.

You're apparently seeing it as it's intended to be displayed.  I'm seeing it in a way that means the double-triangle makes no sense.  :-)
Beeeej, Esq.

"Cornell isn't an organization.  It's a loose affiliation of independent fiefdoms united by a common hockey team."
   - Steve Worona

ftyuv

[quote CowbellGuy]If you're talking about the one set in the forum, that's server-side.[/quote]

I'm talking about the one set in "Forum Settings" in my Control Panel page.  I don't see why you can't have the server, when it's making the page, pass that to the javascript.

Something like: Modify doCountdown() to have it be doCountdown(timezone), then var currentDate = new Date() + timezone * 60;  (or whatever similar code).  Then, in the php script, have it write not "doCountdown()" but "doCountdown($gmtOffset)".


Better yet, use the getTimezoneOffset() method of Date :)  Specifically, I think if you change setEventDate to:


function setEventDate(year, month, day, hour, minute, second) {
  this.eventDate = new Date(year, month - 1, day, hour, minute, second);
  // This time was specified in GMT.  Convert it to local time.
  this.eventDate.setTime( this.eventDate.getTime() - this.eventDate.getTimezoneOffset() * 1000 * 60);
  return;
}



you should be able to just specify the game times in GMT in your .inc file and then be pretty much set.  Or, something close to that.

Btw, looking at the code, I'm not sure if you need var timeLeft = new Date();  I think subtracting two dates just gives you a number, and javascript isn't very type strong, so this line just needlessly gets the Date and never uses it -- just replaces it with a number in the next line.

Robb

Let's Go RED!