Hola, llevo dos dias intentando arreglar un codigo que puse para una cuenta atras en flash. Al principio no me iba con la hora del servidor, y eso ya lo arreglé, pero ahora tengo un gran problema, y es que en canarias por ejemplo , la cuenta atras les sale como que queda 1 hora más por la diferencia de franja horaria, os pongo los codigos que puse tanto en el flash como en el php, solo tengo hasta mañana al medio dia para poder cambiarlo, pues la cuenta atras se acerca a su fin, y es para una subasta,gracias de antemano

El codigo de flash :

Código :

stop();
eventDate = new Date(2007,4,5,23,59,59);
eventMillisecs = eventDate.getTime();
countdown = function(){
   var currentMillisecs = server.time + getTimer();
   this.msecs = eventMillisecs - currentMillisecs;
   if (this.msecs <= 0){
      play();
      return;
   }
   this.secs = Math.floor(this.msecs/1000); // 1000 milliseconds make a second
   this.mins = Math.floor(this.secs/60); // 60 seconds make a minute
   this.hours = Math.floor(this.mins/60); // 60 minutes make a hour
   this.days = Math.floor(this.hours/24); // 24 hours make a second
   this.msecs = string(this.msecs % 1000);
   this.secs = string(this.secs % 60);
   this.mins = string(this.mins % 60);
   this.hours = string(this.hours % 24);
   this.days = string(this.days);
   while (this.msecs.length < 3) this.msecs = "0" + this.msecs;
   if (this.secs.length < 2) this.secs = "0" + this.secs;
   if (this.mins.length < 2) this.mins = "0" + this.mins;
   if (this.hours.length < 2) this.hours = "0" + this.hours;
   while (this.days.length < 3) this.days = "0" + this.days;
   for(movie in this){
      if (this[movie]._parent == this) this[movie].evaluateFrameFrom(this);
   }
};

MovieClip.prototype.evaluateFrameFrom = function(variableClip){
   var nameArray = this._name.split("_");
   var numberSet = variableClip[nameArray[0]];
   var character = number(nameArray[1]);
   var frame = 1 + number(numberSet.charAt(character));
   if (this._currentframe != frame) this.gotoAndStop(frame);
};

server = new LoadVars();
server.onLoad = function(ok){
   if (!ok) return trace("Server error! Unable to obtain date from server");
   counter.onEnterFrame = countdown;
   counter._visible = true;
   this.time = Number(this.time)*1000 - getTimer();
};

server.load("gettime.php");
counter._visible = false;



y lo que puse en el php:

Código :

<?php
echo "time=" . time();
?>