mirror of
https://github.com/zwpro/coupons.git
synced 2025-12-10 16:52:48 +00:00
commit
768dd09e14
@ -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;
|
||||
}
|
||||
@ -96,4 +96,4 @@ exports.main = async (event, context) => {
|
||||
});
|
||||
return Promise.all(sendPromises)
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user