Travis build: 1311

This commit is contained in:
30secondsofcode
2019-07-20 09:39:17 +00:00
parent 63783ad82a
commit d41b86fa31
5 changed files with 8 additions and 5 deletions

View File

@ -659,7 +659,7 @@ const isValidJSON = str => {
}
};
const isWeekday = (t = new Date()) => {
return t.getDay() >= 1 && t.getDay() <= 5;
return t.getDay() % 6 !== 0;
};
const isWeekend = (t = new Date()) => {
return t.getDay() === 0 || t.getDay() === 6;