Week with ohne decimal

This commit is contained in:
Paro The Parrot 2022-09-16 09:49:04 +02:00 committed by GitHub
parent 6171fbbcb8
commit b54e9db094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ function getTimeRemaining(endtime){
};
}
let remainingDays = getTimeRemaining(dateForCountdown).days + 1;
let remainingWeeks = Math.round(remainingDays /7);
let remainingWeeks = Math.round(remainingDays*10 /7)/10;
// Create Widget
let widget = new ListWidget();