diff --git a/wres-vis/src/wres/vis/charts/ChartFactory.java b/wres-vis/src/wres/vis/charts/ChartFactory.java index 27ac05af0..85b386fe4 100644 --- a/wres-vis/src/wres/vis/charts/ChartFactory.java +++ b/wres-vis/src/wres/vis/charts/ChartFactory.java @@ -544,15 +544,14 @@ public JFreeChart getDurationDiagramChart( List s false, false ); - // Set the date/time format + // Set the date/time format. See GitHub ticket #360 DateAxis dateAxis = ( DateAxis ) chart.getXYPlot() .getDomainAxis(); TimeZone timeZone = TimeZone.getTimeZone( "UTC" ); SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd+HH" ); format.setTimeZone( timeZone ); dateAxis.setDateFormatOverride( format ); - - dateAxis.setTimeZone(timeZone); + dateAxis.setTimeZone( timeZone ); XYPlot plot = chart.getXYPlot(); @@ -993,15 +992,14 @@ else if ( chartType == ChartType.POOLING_WINDOW ) true, false, false ); - // Set the date/time format + // Set the date/time format. See GitHub ticket #360 DateAxis dateAxis = ( DateAxis ) chart.getXYPlot() .getDomainAxis(); TimeZone timeZone = TimeZone.getTimeZone( "UTC" ); SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd+HH" ); format.setTimeZone( timeZone ); dateAxis.setDateFormatOverride( format ); - - dateAxis.setTimeZone(timeZone); + dateAxis.setTimeZone( timeZone ); } else {