Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/10/2011, 11:39
Avatar de Franz1628
Franz1628
 
Fecha de Ingreso: marzo-2007
Ubicación: Lima - Perú
Mensajes: 145
Antigüedad: 17 años, 1 mes
Puntos: 26
Respuesta: lastModified y Google Chrome

Que te parece este código

Código Javascript:
Ver original
  1. <script type="text/javascript">
  2.  
  3. function is_chrome(){
  4.         var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
  5.         return is_chrome;
  6.   }
  7.  
  8.   var texto=document.lastModified;
  9.  
  10. mm=texto.substring(0,2);
  11.  
  12. dd=texto.substring(3,5);  
  13.  
  14. aa=texto.substring(6,10);
  15.  
  16. hora=texto.substring(11,13);
  17. minSeg = texto.substring(13,24);
  18. if(is_chrome()){
  19.     hora = parseInt(hora)-5;
  20.     document.write(dd+"/"+mm+"/"+aa+"  "+hora+minSeg);
  21. }  
  22. else
  23.     document.write(dd+"/"+mm+"/"+aa+"  "+hora+minSeg);  
  24. </script>

__________________
En mi Blog puedes ver articulos javascript y más...
@Franz1628