Skip to content

Commit

Permalink
Fix bug of month is one number behind.
Browse files Browse the repository at this point in the history
  • Loading branch information
H. Ryan Jones committed Jun 16, 2019
1 parent cd9e777 commit b093e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function getTimezonelessLocalDate(date) {
}

function getMonth(date) {
return leftPad(date.getMonth().toString(), 2);
return leftPad((date.getMonth() + 1).toString(), 2);
}

function getMonthDay(date) {
Expand Down

0 comments on commit b093e45

Please sign in to comment.