Fix date
This commit is contained in:
parent
d100edd598
commit
59c7e47f49
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ export class Main {
|
|||
}
|
||||
|
||||
console.log("Building post...")
|
||||
await new Postbuilder(action, this._config, poster, changesets).buildMessage(today.getUTCFullYear() + "-" + Utils.TwoDigits(today.getUTCMonth() + 1) + "-" + Utils.TwoDigits(today.getUTCDate() - 1))
|
||||
const yesterday = new Date(today.getTime() - 24 * 60 * 60 * 1000)
|
||||
await new Postbuilder(action, this._config, poster, changesets).buildMessage(yesterday.getUTCFullYear() + "-" + Utils.TwoDigits(yesterday.getUTCMonth() + 1) + "-" + Utils.TwoDigits(yesterday.getUTCDate()))
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue