Skip to content

Commit

Permalink
Fix how the Interval annotation layer interpretes the timestamp strin…
Browse files Browse the repository at this point in the history
…g without timezone info; use it as UTC
  • Loading branch information
Evelyn Turner committed Mar 6, 2018
1 parent 176d2a9 commit ad2b9e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/assets/visualizations/nvd3_vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ function nvd3Vis(slice, payload) {
const tip = tipFactory(e);

const records = (slice.annotationData[e.name].records || []).map((r) => {
const timeColumn = new Date(r[e.timeColumn]);
const intervalEndColumn = new Date(r[e.intervalEndColumn]);
const timeColumn = new Date(moment.utc(r[e.timeColumn]));
const intervalEndColumn = new Date(moment.utc(r[e.intervalEndColumn]));
return {
...r,
[e.timeColumn]: timeColumn,
Expand Down

0 comments on commit ad2b9e2

Please sign in to comment.