Hello,
I'm trying to calculate an ETA from a laps of time, exemple :
duree = (duree / 1000).toLong(); // en secondes
ETA = Time.now().value()+duree ;
_ETA = Lang.format("$1$:$2$", [(ETA /3600 % 24).format("%02d"), (ETA / 60 % 60).format("%02d")]); // ETA en texte
But the ETA seem to be wrong, alway one hour too early
I think I'me wrong with the UTC or Something else
You help is welcome, please
Thanks