Prechádzať zdrojové kódy

修复格式化时间问题

xiezhiming 8 mesiacov pred
rodič
commit
22d7543ffe
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/js/qcScore.js

+ 1 - 1
src/js/qcScore.js

@@ -1220,7 +1220,7 @@ $(function () {
       const year = date.getFullYear()
       const month = fillZero(date.getMonth())
       const day = fillZero(date.getDate())
-      const hour = fillZero(date.getDate())
+      const hour = fillZero(date.getHours())
       const minute = fillZero(date.getMinutes())
       const second = fillZero(date.getSeconds())
       return `${year}-${month}-${day} ${hour}:${minute}:${second}`