From 12ac52320fcc99a645d3dc0c904ed483265baeab Mon Sep 17 00:00:00 2001 From: Divlo Date: Mon, 28 Oct 2019 09:40:21 +0100 Subject: [PATCH] Removed useless code dateTimeUTC --- scripts/fonctions_annexes.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/fonctions_annexes.js b/scripts/fonctions_annexes.js index 563cd84..9142226 100644 --- a/scripts/fonctions_annexes.js +++ b/scripts/fonctions_annexes.js @@ -33,11 +33,7 @@ function capitalize (s) { // Donne la date et l'heure selon l'UTC (Universal Time Coordinated) function dateTimeUTC(utc) { - let result = ""; - for (let index in utc) { - result = result + utc[index]; - } - const enteredOffset = parseFloat(result)*60; + const enteredOffset = parseFloat(utc)*60; timeNow.setMinutes(timeNow.getMinutes() + enteredOffset); return showDateTime(enteredOffset); }