Update fuzzyw.app.js

pull/1659/head
sir-indy 2022-04-06 13:17:03 +01:00 committed by GitHub
parent f0fce411b9
commit 575926b654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ if (settings.alignment =='Left') {
} }
function getTimeString(date) { function getTimeString(date) {
let segment = Math.round((date.getMinutes()*60 + date.getSeconds())/300); let segment = Math.round((date.getMinutes()*60 + date.getSeconds() + 1)/300);
let hour = date.getHours() + Math.floor(segment/12); let hour = date.getHours() + Math.floor(segment/12);
f_string = fuzzy_string.minutes[segment % 12]; f_string = fuzzy_string.minutes[segment % 12];
if (f_string.includes('$1')) { if (f_string.includes('$1')) {