Use getDate() instead of the obviously wrong getDay()

This commit is contained in:
Niels Leenheer
2018-01-22 23:37:04 +01:00
parent 932424859b
commit 61c006a426

View File

@ -12,7 +12,7 @@ const tomorrow = () => {
'-' +
String(t.getMonth() + 1).padStart(2, '0') +
'-' +
String(t.getDay()).padStart(2, '0')
String(t.getDate()).padStart(2, '0')
);
};
```