Comunidad de diseño web y desarrollo en internet online

Reloj con hora gmt - 5

Citar            
MensajeEscrito el 30 Dic 2005 10:43 pm
¿Cómo puedo hacer para que un reloj marque siempre la hora gmt-5 independientemente de la hora del pc del visitante de la página?

Por yarhell

1 de clabLevel



 

msie
Citar            
MensajeEscrito el 31 Dic 2005 10:30 am
Si, revisa el objeto Date de Flash más especificamente los métodos que empiezan por "UT"

Por _CONEJO

BOFH

7639 de clabLevel

17 tutoriales
21 articulos

 

firefox
Citar            
MensajeEscrito el 01 Ene 2006 05:23 pm
Si, eso he probado, pero no me marca la hora correcta, marca una hora mas de la adecuada a pesar de marcarle UTC -5 horas. El código que uso es este:

_root.onEnterFrame = function() {
myDate = new Date();
mchoras._rotation = myDate.getUTCHours -5 ()*30+myDate.getUTCMinutes()/2;
mcminutos._rotation = myDate.getUTCMinutes()*6+myDate.getUTCSeconds()/10;
mcsegundos._rotation = myDate.getUTCSeconds()*6;
};

¿Dónde está el error?
Gracias

Por yarhell

1 de clabLevel



 

msie
Citar            
MensajeEscrito el 01 Ene 2006 05:30 pm
( myDate.getUTCHours()-5)

Por _CONEJO

BOFH

7639 de clabLevel

17 tutoriales
21 articulos

 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.