소스 검색

修复格式化时间问题

xiezhiming 8 달 전
부모
커밋
22d7543ffe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}`