Skip to content

Commit

Permalink
[fix]{DateTimeNow}: 修复日期多一天的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Aug 6, 2019
1 parent 0704c09 commit bb2eea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function DateTimeNow() {
const date = new Date();
const Y = `${date.getFullYear()}年`;
const M = `${date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : date.getMonth() + 1}月`;
const D = `${date.getDate() + 1 < 10 ? `0${date.getDate() + 1}` : date.getDate() + 1}日`;
const D = `${date.getDate() + 1 < 10 ? `0${date.getDate()}` : date.getDate()}日`;
return Y + M + D;
}

Expand Down

0 comments on commit bb2eea3

Please sign in to comment.