Forráskód Böngészése

修复格式化时间问题

xiezhiming 8 hónapja
szülő
commit
22d7543ffe
1 módosított fájl, 1 hozzáadás és 1 törlés
  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}`