Skip to content

Commit

Permalink
书籍信息更新时间只保留年月日
Browse files Browse the repository at this point in the history
  • Loading branch information
celetor committed Aug 17, 2021
1 parent e511d2f commit c3aad13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default {
} else if (int < 2592000) {
str = parseInt(int / 86400) + "天前";
} else {
str = new Date(t).format("yyyy-MM-dd hh:mm");
str = new Date(t).format("yyyy-MM-dd");
}
return str;
}
Expand Down

0 comments on commit c3aad13

Please sign in to comment.