Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.1.1^2
zouap 3 years ago
parent
commit
8969f160df
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      public/home/home.js

+ 2
- 1
public/home/home.js View File

@@ -106,7 +106,8 @@ function getRepoLink(record){
}

function getTime(UpdatedUnix,currentTime){
currentTime = currentTime/1000;
UpdatedUnix = UpdatedUnix * 1000;
currentTime = currentTime;
var timeEsc = currentTime - UpdatedUnix;
console.log("currentTime=" + currentTime + " updateUnix=" + UpdatedUnix);
var dayDiff = Math.floor(timeEsc / (24 * 3600 * 1000));//计算出相差天数


Loading…
Cancel
Save