Skip to content

Commit

Permalink
Update history.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hotsixman authored Oct 21, 2024
1 parent b692835 commit 110313b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ copyFileSync('database.json', `history/${getDateString()}.json`);

function getDateString(){
const date = new Date();
return `${date.getUTCFullYear()}-${date.getUTCMonth()}-${date.getUTCDate()}`;
}
return `${date.getUTCFullYear()}-${date.getUTCMonth() + 1}-${date.getUTCDate()}`;
}

0 comments on commit 110313b

Please sign in to comment.