mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 11:42:23 +08:00
month error bugfix
This commit is contained in:
parent
59a867b8b9
commit
bfb7a6447e
|
@ -183,7 +183,7 @@ export default modalTemplate({
|
|||
const tokenStorage = filterTokenStorages[0];
|
||||
const time = new Date();
|
||||
const date = time.getDate();
|
||||
const month = time.getMonth();
|
||||
const month = time.getMonth() + 1;
|
||||
const year = time.getFullYear();
|
||||
let path = tokenStorage.path.replace('{YYYY}', year)
|
||||
.replace('{MM}', `0${month}`.slice(-2)).replace('{DD}', `0${date}`.slice(-2));
|
||||
|
|
Loading…
Reference in New Issue
Block a user