Is it possible that in different Android devices time was measured differently?
- In the database I save time in UTC
- in the reactive native application, I save the time as
new Date()
- I COUNT THE DIFFERENCE OF TIME FOR TIMES IN THE SAME MOMENT
- RESULTS:
- the emulator is 0 days and 0 hours (OK)
- the smartphone is -1 days and 23 hours (??)
let date = new Date(dateTimeDone);
var today = new Date();
today.setHours(today.getHours());
seconds = Math.floor((today - (date)) / 1000);
minutes = Math.floor(seconds / 60);
hours = Math.floor(minutes / 60);
days = Math.floor(hours / 24);
hours = hours - (days * 24);