reduce the time on a clock by 5 minutes
Hi,
I really like the clock posted here:
http://www.flashfridge.com/tutorial.asp?ID=49
I have used a modified version of it for our video presentation screens at the school reception, however, for some reason which I simply don't know why, the screens are five minutes fast, for example, when it says 11.22 here in my office, it says 11.22 on the flash file HERE, when I publish it on the reception screens, it will say 11.27 THERE.
There is no problem with the code, that is fine, it is something to do with the screen set up... very complicated and beyond me I'm afraid... however, is there a simple way that I can alter the ActionScript so that although it's 11.22 in my office and of course 11.22 in reception, the code bit will say it's actually 11.17 BUT when it's on the screen because of the 5 minute discrepancy it will now say 11.22... does that make sense? It's just the actionscript code that I need to reduce by 5 minutes.
Many thanks,
Jay Dog
Code:
time=new Date(); // time object
var seconds = time.getSeconds()
var minutes = time.getMinutes()
var hours = time.getHours()
if (hours<12) {
ampm = "AM";
}
else{
ampm = "PM";
}
while(hours >12){
hours = hours - 12;
}
if(hours<10)
{
hours = "0" + hours;
}
if(minutes<10)
{
minutes = "0" + minutes;
}
if(seconds<10)
{
seconds = "0" + seconds;
}
Clock_text.text = hours + ":" + minutes + ":" + seconds +" "+ ampm;