Removed useless code dateTimeUTC
This commit is contained in:
parent
150e8f5116
commit
12ac52320f
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user