Skip to content

Commit

Permalink
fixed timezone in dates #58
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Apr 10, 2021
1 parent da1ff86 commit be274c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ export default class Source {
);
}

data.date.setTime(
data.date.getTime() + data.date.getTimezoneOffset() * 60 * 1000,
);

const page = new Page(src);
page.data = data;
page.dest = dest;
Expand Down

0 comments on commit be274c7

Please sign in to comment.