- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Assuming facts not in evidence. Check your own Windows system's time configuration if you don't understand this. No reconfiguration of the client is necessary.
And besides, you're running javascript from this "shady website" and somehow you're concerned about instructions for (a nonexistent) configuration for time server change?
Admin
You'll notice there's no clock on the Time Cube website. It's hard enough to accommodate for time zones, much less four days occurring simultaneously.
Admin
The real WTF is how long they spent getting the feature working right, instead of just rolling back the production server to take the bad feature out of production. (Not to mention failing to load test the new feature)
Admin
Admin
Man, if I was David, that would be a Gibbs moment right there. "Javascript has a built-in Date object?" ::THWAP::
Admin
I suppose nobody liked THE CLOCK THAT CAME WITH THEIR OS.
Admin
Nice idea, though I don't think it would work. Just did a few tests on an Intel Core 2 Duo machine with 1024MB RAM and a loop like that brought Firefox to a screeching halt in less than five seconds. Which would, ironically, keep the server from getting DDoSed.
Then again, do we know the percieved "intranet slowness" came really from the intranet...? hmmm...
Admin
Good question. Maybe it's really from the electrons in this space-time continuum leaking into another one nearby.
Admin
I'd give up all the new fancy app-like web designs if we could just put ajax back into the ground from whence it came.
AJAX/JS is just too damn dangerous, completely changed the name of the game with respect to malicious code.
Admin
Admin
No.
(The more people we can convince, the better the WWW will be.)
Admin
I have six! I AM THE TIME MASTER!
Admin
Admin
"...fruit flies like a banana."
If you're going to quote Marx, get it right!
Admin
(And before some smart-arse points out that Javascript supports regular expressions, yes, I know it does. At least it's on the client side, so now you only have two problems[tm]. With the magic of AJAX, you can get all the problems you can eat... and then some.)
Admin
Admin
Admin
The same as almost every wtf here
[image]Admin
If you can't shoot yourself in the foot with a language, it isn't worth anything. Javascript is worth something and so ... owwwwwww!!
Admin
Shouldn't that be something like "TM you must FR"?
Admin
For all those who say "just configure the client with NTP", you apparently have never had a rogue time server take out an entire Windows domain's authentication because Someone Thought It Was A Good Idea To Keep The Client Clocks In Sync With The Faulty Government Time Server*... clock skew is a bitch.
Admin
I think it's totally inappropriate to treat your Date like an Object.
Admin
iLOL'd, will have to remember that one ;-)
Admin
Admin
Fruit flies also multiply and change quickly, much like this WTF.
Admin
Admin
Just thought I'd let everyone know it is 1:01PM Central Time.
I'll add another comment if this information changes...
Admin
Yeah, I know, it doesn't make logical sense, but who ever said we are dealing with rational creatures here?
Admin
There are bugs in JS timezone handling...
Admin
Gah was going to mention that yes JS has RE. But also will point out that RE is amazing, and AJAX is not. It was fun for a good month or so however!
Admin
You mean there's a browser for accessing remote content? I've been using curl with my mental text-to-display translator. This way I can interpret things how I want to instead of how someone else intended. Wait, my brain has been hacked by an xss vulnerability and they stole all my mental cookies...
Admin
The average gambling site user either has NTP configured out-of-box or doesn't. You can't depend on it, and you certainly can't depend on the user to fix the configuration if it's not set correctly.
And for the record, the original suggestion was not to update from the server every second, but once to get a timediff, then update every second using that timediff not the server.
Admin
on eBay (http://viv.ebay.ca/ws/eBayISAPI.dll?EbayTime) ...
Admin
Admin
At my old job it was far too (depressingly so) common to see the developers think it was fine to implement a function that worked fine with one user, and then blithely go ahead to production with it without realizing that when several hundred people at a time fired up the page, the servers would give out a death rattle and freeze up under the load. Glad I'm not having to babysit those particular servers anymore.
Admin
Comment if you're f****** Ben Affleck
Admin
It could happen! Just make it an issue of National Security!
Admin
Admin
Admin
Admin
Admin
Time synchronization between machines is not in any way affected by the time zones each machine is set to. That information is only used when presenting local times.
Admin
Is there any OS that has come out in the last (say) 8 years that doesn't come with an NTP client, or at least an automatic rdate? I haven't set a clock since clock hardware started being built in.
And if you're talking about an intranet, I'd think you'd have enough control over the user's machine to get one.
Admin
You could always treat your Date like an Interface...
Admin
Guys, I'm scared, but there's 5 clocks on the wall, each representing different timezone, I also have a watch, two cell phones, an mp3 player and an internal phone that show time. Plus the computer. I'm just going to crawl under my desk pondering the gravity of time.
Admin
Bah, that tactic only works during the hunt and early courting. Get married, wait a few years, then report back on how well that tactic works ;-)
Admin
Admin
Admin
Admin
Every time updateClock is called, it spawns a new interval without killing the old one.
So at the end of the first visit, there are two intervals. One second later, both of these call updateClock and each one creates a new interval (now there are four). At the end of one second, all four call updateClock and each one creates a new interval (now there are 8). Etc.
Here's an example that shows what happens: