Skip to content

Commit

Permalink
Merge pull request zwpro#57 from yehaia1/patch-1
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
zwpro committed Mar 28, 2021
2 parents ddfc3e1 + 59d8ce6 commit 768dd09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudfunctions-aliyun/send/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ function getFormatDate(ms) {
let date = new Date();
date.setTime(date.getTime() + ms);
const year = date.getFullYear();
const month = date.getMonth() + 1;
const strDate = date.getDate();
let month = date.getMonth() + 1;
let strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = '0' + month;
}
Expand Down Expand Up @@ -96,4 +96,4 @@ exports.main = async (event, context) => {
});
return Promise.all(sendPromises)

};
};

0 comments on commit 768dd09

Please sign in to comment.