Travis build: 1358 [cron]

This commit is contained in:
30secondsofcode
2018-01-23 20:11:51 +00:00
parent 7999ad6271
commit ac8f842b93
30 changed files with 509 additions and 36 deletions

View File

@ -1,2 +1,8 @@
const tomorrow = () => new Date(new Date().getTime() + 86400000).toISOString().split('T')[0];
const tomorrow = () => {
let t = new Date();
t.setDate(t.getDate() + 1);
return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, '0')}-${String(
t.getDate()
).padStart(2, '0')}`;
};
module.exports = tomorrow