Actually, it shows -4 hours.
GMT as I write this is 01:46
The code they use on the page subtracts five hours, which results in a
value of -4 for the hours. They need to add a line to add 24 if the result is
negative. I'm sure it looks fine 19
hours a day, though...
And no, it does not give me a lot of
confidence, either, but now that we've aired the problem and the cure, let's see
how long it takes to fix...
-d
<SCRIPT>
function tick() {
var hours, minutes, seconds, ap;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getUTCHours()-5;
intMinutes = today.getUTCMinutes();
intSeconds = today.getUTCSeconds();
function tick() {
var hours, minutes, seconds, ap;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getUTCHours()-5;
intMinutes = today.getUTCMinutes();
intSeconds = today.getUTCSeconds();
//add
this:
if (intHours <
0) {
intHours +=
24
}
if (intHours == 0) {
hours = "12:";
ap = "EST Midnight";
} else if (intHours < 12) {
hours = intHours+":";
ap = " AM EST is the current time for Declude Support Personnel";
} else if (intHours == 12) {
hours = "12:";
ap = "EST Noon";
} else {
intHours = intHours - 12
hours = intHours + ":";
ap = "PM EST is the current time for Declude Support Personnel";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = hours+minutes+seconds+ap;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.></SCRIPT>
} else if (intHours < 12) {
hours = intHours+":";
ap = " AM EST is the current time for Declude Support Personnel";
} else if (intHours == 12) {
hours = "12:";
ap = "EST Noon";
} else {
intHours = intHours - 12
hours = intHours + ":";
ap = "PM EST is the current time for Declude Support Personnel";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = hours+minutes+seconds+ap;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.></SCRIPT>
----- Original Message -----
From: "Erik" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 04, 2005 8:25
PM
Subject: [Declude.JunkMail] OT: Clock
Time on Declude Support
https://www.declude.com/SearchResults.asp?Cat=5
Off? In CET (Central European Time) of 2:15AM, their clock shows 4:15AM EST
when it should be showing 9:15PM EST.
.....hope this doesn't reflect in their 2.0 programming code. ;-)
---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]
---
This E-mail came from the Declude.JunkMail mailing list. To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.JunkMail". The archives can be found
at http://www.mail-archive.com.
