Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
niltor committed Apr 2, 2024
1 parent a9750a3 commit ecc85ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebApp/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function timeAgo(date) {
return `${counter}${unit}${day}前`;
}
if (unit === '天') {
lethour = Math.floor((seconds - counter * intervals[unit]) / intervals['小时']);
let hour = Math.floor((seconds - counter * intervals[unit]) / intervals['小时']);
hour = hour > 0 ? hour + '小时' : '';
return `${counter}${unit}${hour}前`;
}
Expand Down

0 comments on commit ecc85ee

Please sign in to comment.