Skip to content

Commit

Permalink
Merge pull request #1791 from jpwhite4/ganttrange
Browse files Browse the repository at this point in the history
Fix range setting for job peers plots.
  • Loading branch information
jpwhite4 authored Nov 16, 2023
2 parents 93991f9 + 5a3f145 commit db4adc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion html/gui/js/modules/job_viewer/GanttChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ XDMoD.Module.JobViewer.GanttChart = Ext.extend(XDMoD.Module.JobViewer.ChartTab,
zeroline: false,
gridcolor: '#d8d8d8',
type: 'date',
range: [record.data.series[0].data[0].low - (60 * 1000), record.data.series[0].data[0].high + (60 * 1000)]
range: [
moment.tz(record.data.series[0].data[0].low - (60 * 1000), record.data.schema.timezone).format('Y-MM-DD HH:mm:ss.SSS'),
moment.tz(record.data.series[0].data[0].high + (60 * 1000), record.data.schema.timezone).format('Y-MM-DD HH:mm:ss.SSS')
]
},
yaxis: {
autorange: 'reversed',
Expand Down

0 comments on commit db4adc4

Please # to comment.