Skip to content

Commit

Permalink
corrección mínima de seguridad
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinXCVI committed May 30, 2024
1 parent 64e05bc commit 89fb785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/apis/reloj.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
async function obtenerHoraDelServidor() {
try {
const respuesta = await fetch('http://worldtimeapi.org/api/timezone/America/Argentina/Buenos_Aires');
const respuesta = await fetch('https://worldtimeapi.org/api/timezone/America/Argentina/Buenos_Aires');
const datos = await respuesta.json();
return datos.datetime.slice(11, 19); // Extraer solo la hora (HH:MM:SS)
} catch (error) {
Expand Down

0 comments on commit 89fb785

Please sign in to comment.