Skip to content

Commit

Permalink
daytoday reports are always in the profile's time zone
Browse files Browse the repository at this point in the history
Midnight for the profile should always be at the start of the
day (midnight) for the chart.
  • Loading branch information
bewest committed Jan 24, 2023
1 parent 0426b01 commit 0541e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/report_plugins/daytoday.js
Expand Up @@ -432,8 +432,8 @@ daytoday.report = function report_daytoday (datastorage, sorteddaystoshow, optio
contextCircles.exit()
.remove();

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

Expand Down

0 comments on commit 0541e2a

Please sign in to comment.