We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0704c09 commit bb2eea3Copy full SHA for bb2eea3
src/utils/index.js
@@ -94,7 +94,7 @@ export function DateTimeNow() {
94
const date = new Date();
95
const Y = `${date.getFullYear()}年`;
96
const M = `${date.getMonth() + 1 < 10 ? `0${date.getMonth() + 1}` : date.getMonth() + 1}月`;
97
- const D = `${date.getDate() + 1 < 10 ? `0${date.getDate() + 1}` : date.getDate() + 1}日`;
+ const D = `${date.getDate() + 1 < 10 ? `0${date.getDate()}` : date.getDate()}日`;
98
return Y + M + D;
99
}
100
0 commit comments