Merge branch 'master' of https://github.com/Divlo/FunctionProject
This commit is contained in:
commit
504cb0f5b0
@ -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