Hola amigos
Tengo instalado un script para calcular las diferencias horarias
pero no presenta la hora en el formato correcto, es el siguiente:[COLOR=darkred]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Convertidor horario</title>
<script language="javaScript">function calct(form){
var today=new Date();
var m1=0;
var m2=today.getMinutes();
form.lgmt.value=form.loclt.options[form.loclt.selectedIndex].value;
form.fgmt.value=form.fort.options[form.fort.selectedIndex].value;
form.tdif.value=form.fgmt.value-form.lgmt.value;
m1=parseInt(today.getHours())+parseInt(form.tdif.v alue);
if (10>m2){m2="0"+m2};
form.ltime.value=today.getHours()+":"+m2;
form.ftime.value=m1+":"+m2;
}</script>
<script language="JavaScript"><!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//--></script>
<script language="JavaScript"><!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// --></script>
</head>
<body onload='calct(selector);'>
<div align="center"><center><table width="80%"><tr>
<td ><h1><span style="font-weight: 400"><font face="arial">Zonas horarias del mundo</font></span></h1>
<div align="center"><center><TABLE width="100%"><TR><TD width="100%"><FONT FACE="arial">Opciones</font></TD>
</TR></TABLE></center></div><TABLE width="100%"><TR ><TD ALIGN="Right" width="147"><FONT FACE="arial" >Elija su lugar de origen. </TD><FONT FACE="arial"><TD VALIGN="Top" width="389"><FORM Id="selector"><p><SELECT Name="loclt" onChange="calct(this.form)">
<OPTION value="4.5"> Afganistán<OPTION value="1">Albania<OPTION value="1"> Alemania<OPTION value="1"> Algeria
<OPTION value="1"> Andorra<OPTION value="1"> Angola<OPTION value="-4"> Antigua y Barbuda
<OPTION value="3">Arabia Saudita<OPTION value="-3">Argentina<OPTION value="10">Australia
<OPTION value="1"> Austria<OPTION value="-1"> Azores<OPTION value="-5"> Bahamas
<OPTION value="3"> Bahrain<OPTION value="6"> Bangladesh<OPTION value="-5"> Barbados
<OPTION value="1"> Bélgica<OPTION value="-6"> Belice<OPTION value="1"> Benin
<OPTION value="-4">Las Bermudas<OPTION value="6">Bután<OPTION value="-4"> Bolivia
<OPTION value="1"> Bosnia y Herzegovina<OPTION value="2">Botsuana<OPTION value="-3"> Brasil
<OPTION value="8"> Brunei<OPTION value="0"> Burkina Faso<OPTION value="2"> Burundi
<OPTION value="1"> Cameroun<OPTION value="-5">Canadá<OPTION value="-1"> Islas de Cabo Verde
<OPTION value="1"> República Centroafricana<OPTION value="1"> Chad<OPTION value="-4"> Chile
<OPTION value="8"> China<OPTION value="-5"> Colombia<OPTION value="3"> Comoros
<OPTION value="1"> Congo<OPTION value="-6"> Costa Rica<OPTION value="9"> Corea del Norte
<OPTION value="9"> Corea del Sur<OPTION value="-5"> Cuba<OPTION value="2"> Chipre
<OPTION value="1"> República Checa<OPTION value="-4"> Dominica<OPTION value="-4"> República Dominicana
<OPTION value="-5"> Ecuador<OPTION value="2"> Egipto<OPTION value="-6"> El Salvador
<OPTION value="4"> Emiratos Arabes Unidos<OPTION value="1"> Eslovaquia<OPTION value="1" selected> España
<OPTION value="-5">Estados Unidos de América<OPTION value="3"> Etiopía<OPTION value="-4"> Islas Malvinas
<OPTION value="12"> Fiji<OPTION value="8">Filipinas<OPTION value="2"> Finlandia<OPTION value="1"> Francia
<OPTION value="-3"> Guayana Francesa<OPTION value="1"> Gabón<OPTION value="0"> Gambia<OPTION value="0"> Gran Bretaña
<OPTION value="0"> Ghana<OPTION value="1"> Gibraltar<OPTION value="2"> Grecia<OPTION value="-3"> Groenlandia
<OPTION value="-6"> Granada<OPTION value="-6"> Guatemala<OPTION value="0"> Guinea<OPTION value="-3">Guayana
<OPTION value="1"> Guinea Ecuatorial<OPTION value="-5"> Haiti<OPTION value="-6"> Honduras
<OPTION value="8"> Hong Kong<OPTION value="1"> Hungría<OPTION value="0">Islandia
<OPTION value="5.5"> India<OPTION value="7"> Indonesia<OPTION value="3.5"> Irán
<OPTION value="3"> Iraq<OPTION value="0">Irlanda<OPTION value="2"> Israel
<OPTION value="1">Italia<OPTION value="-5"> Jamaica<OPTION value="-9"> Japón
<OPTION value="2">Jordania<OPTION value="3">Kenia<OPTION value="12"> Kiribati
<OPTION value="3"> Kuwait<OPTION value="1"> Latvia<OPTION value="2"> Líbano
<OPTION value="2"> Lesotho<OPTION value="0"> Liberia<OPTION value="1"> Libia
<OPTION value="1"> Liechtenstein<OPTION value="1"> Lithuania<OPTION value="1"> Luxemburg
<OPTION value="8"> Macao<OPTION value="3"> Madagascar<OPTION value="2"> Malawi
<OPTION value="8">Malasia<OPTION value="5"> Maldivas<OPTION value="0"> Mali
<OPTION value="1"> Malta<OPTION value="0"> Mauritania<OPTION value="4"> Mauricio
<OPTION value="-6"> Mexico<OPTION value="1"> Mónaco<OPTION value="8"> Mongolia
<OPTION value="1"> Marruecos<OPTION value="2"> Mozambique<OPTION value="6.5"> Myanmar
<OPTION value="2"> Namibia<OPTION value="5.25"> Nepal<OPTION value="12"> Nueva Zelanda
<OPTION value="-6"> Nicaragua<OPTION value="1"> Niger<OPTION value="1"> Nigeria
<OPTION value="1"> Noruega<OPTION value="4"> Omán<OPTION value="1"> Países Bajos
<OPTION value="5"> Pakistán<OPTION value="9"> Palau<OPTION value="-5"> Panamá
<OPTION value="10">Papua-Nueva Guinea<OPTION value="-4"> Paraguay<OPTION value="-5"> Perú
<OPTION value="-10"> Polinesia Francesa<OPTION value="1"> Polonia<OPTION value="0"> Portugal
<OPTION value="-4"> Puerto Rico<OPTION value="3"> Qatar<OPTION value="4">Reunión
<OPTION value="-2"> Ruanda<OPTION value="-11"> Samoa<OPTION value="1"> San Marino
<OPTION value="0"> Senegal<OPTION value="4"> Seychelles<OPTION value="0"> Sierra Leona
<OPTION value="8"> Singapur<OPTION value="11"> Islas Salomón<OPTION value="3"> Somalia
<OPTION value="2"> Sudafrica<OPTION value="5.5"> Sri Lanka<OPTION value="2"> Sudan
<OPTION value="-3"> Surinam<OPTION value="2"> Swaziland<OPTION value="1"> Suecia
<OPTION value="1"> Suiza<OPTION value="2"> Siria<OPTION value="8">Taiwan
<OPTION value="3"> Tanzania<OPTION value="7"> Tailandia<OPTION value="0"> Togo
<OPTION value="13"> Tongo<OPTION value="-4"> Trinidad y Tobago<OPTION value="1"> Túnez
<OPTION value="3"> Uganda<OPTION value="0"> UK<OPTION value="11"> Vanuatu<OPTION value="-4"> Venezuela
<OPTION value="7">Vietnam<OPTION value="3"> Yemen<OPTION value="3"> Yibuti
<OPTION value="1"> Zaire<OPTION value="2"> Zambia<OPTION value="2"> Zimbabwe</SELECT></font>
<FONT FACE="arial"><br>Diferencia con GMT</font><FONT FACE="arial" SIZE="-1">
<INPUT type="text" name="lgmt" size=5></font></TD></TR><TR>
<TD ALIGN="Right" width="147"><FONT FACE="arial" >Elija el destino.</TD>
<TD width="358"><SELECT Name="fort" onChange="calct(this.form)">
Sigo en otro post que no me cabe