fixed minute counter

This commit is contained in:
Boof 2023-06-01 08:12:03 +02:00 committed by GitHub
parent 7b9add13a3
commit 7dd65d45d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,9 @@ function calculateYearsSince() {
const diffInYears = diffInMs / (1000 * 60 * 60 * 24 * 365.25);
const days = Math.floor(diffInMs / (1000 * 60 * 60 * 24));
const hours = Math.floor(hoursSince())
const minutes = Math.floor(diffInMs / 1000 / 60)
//const hours = Math.floor((diffInMs % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((diffInMs % (1000 * 60 * 60)) / (1000 * 60));
//const minutes = Math.floor((diffInMs % (1000 * 60 * 60)) / (1000 * 60));
document.getElementById("ageYears").innerText = Math.floor(diffInYears) + " years"
document.getElementById("ageDays").innerText = days + " days"