Skip to content

Commit

Permalink
editor: fix date is off by one month
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Sep 6, 2022
1 parent 1f96b29 commit 0a3ef4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/extensions/date-time/date-time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function currentDate() {

function getISO8601Date(): string {
const year = new Date().getFullYear();
const month = new Date().getMonth();
const month = new Date().getMonth() + 1;
const day = new Date().getDate();
return `${year}-${month}-${day}`;
}
Expand Down

0 comments on commit 0a3ef4b

Please sign in to comment.