Skip to content

Commit

Permalink
BugFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
maxah committed Jan 26, 2022
1 parent 829138e commit 443bc8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const basedir = '../Superalgos';
const date = new Date();
var m = date.getMonth() + 1;
var month = (m < 10) ? ('0' + m) : m;
var month = month.toString();
var day = date.getDate().toString();
var year = date.getFullYear().toString();

Expand Down Expand Up @@ -139,8 +140,8 @@ process.argv.forEach((arg, i) => {
break;

case '-n':
begin = { d: '01', m: month, y: year }; begin_ts = Date.parse(begin);
end = { d: day, m: month, y: year }; end_ts = Date.parse(end);
begin = { d: '01', m: month, y: year }; begin_ts = Date.parse(`${year}-${month}-${begin.d}`);
end = { d: day, m: month, y: year }; end_ts = Date.parse(`${year}-${month}-${day}`);
new_pages = true;
break;

Expand Down

0 comments on commit 443bc8c

Please sign in to comment.