Skip to content

Commit

Permalink
pin start of day in profile's timezone
Browse files Browse the repository at this point in the history
This more closely mirrors logic in loopalyzer, as well as the intent from the
surrounding code in reportclient.js.
  • Loading branch information
bewest committed Jan 23, 2023
1 parent c6b04a7 commit 57965da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/report_plugins/daytoday.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ daytoday.report = function report_daytoday (datastorage, sorteddaystoshow, optio
contextCircles.exit()
.remove();

var from = moment.tz(day, profile.getTimezone( ));
var to = moment(from).add(1, 'days');
var from = moment.tz(day, profile.getTimezone( )).startOf('day');
var to = moment(from.clone( )).add(1, 'days');
var iobpolyline = ''
, cobpolyline = '';

Expand Down

0 comments on commit 57965da

Please sign in to comment.