This commit is contained in:
Divlo 2019-11-04 16:36:37 +01:00
commit 504cb0f5b0

View File

@ -33,11 +33,7 @@ function capitalize (s) {
// Donne la date et l'heure selon l'UTC (Universal Time Coordinated) // Donne la date et l'heure selon l'UTC (Universal Time Coordinated)
function dateTimeUTC(utc) { function dateTimeUTC(utc) {
let result = ""; const enteredOffset = parseFloat(utc)*60;
for (let index in utc) {
result = result + utc[index];
}
const enteredOffset = parseFloat(result)*60;
timeNow.setMinutes(timeNow.getMinutes() + enteredOffset); timeNow.setMinutes(timeNow.getMinutes() + enteredOffset);
return showDateTime(enteredOffset); return showDateTime(enteredOffset);
} }