Travis build: 1333

This commit is contained in:
30secondsofcode
2018-01-23 11:32:13 +00:00
parent 0a06efeb30
commit 24e29efd38
3 changed files with 18 additions and 4 deletions

View File

@ -7,7 +7,9 @@ Use `new Date()` to get today's date, adding one day using `Date.getDate()` and
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')}`;
return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, '0')}-${String(
t.getDate()
).padStart(2, '0')}`;
};
```