Explorar o código

[edit][时间倒计时]

zhangwei %!s(int64=3) %!d(string=hai) anos
pai
achega
64ab9468b1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/uilts/help.js

+ 1 - 0
src/uilts/help.js

@@ -182,6 +182,7 @@ export function formatSecondsAsDaysOrTime(secs) {
     return '00:00:00'
   }
   let text = ''
+  var hr = Math.floor(secs / 3600)
   if (hr >= 24) {
     let day = parseInt(hr / 24)
     text = `${day} days left`