diff --git a/mdw-common/src/com/centurylink/mdw/dataaccess/reports/AggregateDataAccess.java b/mdw-common/src/com/centurylink/mdw/dataaccess/reports/AggregateDataAccess.java index d0acf068e8..79adc008cf 100644 --- a/mdw-common/src/com/centurylink/mdw/dataaccess/reports/AggregateDataAccess.java +++ b/mdw-common/src/com/centurylink/mdw/dataaccess/reports/AggregateDataAccess.java @@ -155,7 +155,7 @@ protected TreeMap> handleBreakdownResult(PreparedSelect select, } /** - * Converts back to server time from db time. + * Parse db-selected datetime to an Instant. */ protected Instant parseDbSt(String st, TimeIncrement increment) throws ParseException { if (increment == TimeIncrement.minute || increment == TimeIncrement.hour) { @@ -187,13 +187,13 @@ else if (increment == TimeIncrement.hour) { } else { if (increment == TimeIncrement.minute) { - return "time_format(" + col + ", '%Y-%m-%d %H:%i') as st"; + return "time_format(date_sub(" + col + ", interval " + hoursDiff + " hour),'%Y-%m-%d %H:%i') as st"; } else if (increment == TimeIncrement.hour) { - return "time_format(" + col + ", '%Y-%m-%d %H:00') as st"; + return "time_format(date_sub(" + col + ", interval " + hoursDiff + " hour),'%Y-%m-%d %H:00') as st"; } else { - return "date(" + col + ") as st"; + return "time_format(date_sub(" + col + ", interval " + hoursDiff + " hour), '%Y-%m-%d') as st"; } } } diff --git a/mdw-hub/web/layout/process-nav.html b/mdw-hub/web/layout/process-nav.html index 5e84eafbf6..76656ca980 100644 --- a/mdw-hub/web/layout/process-nav.html +++ b/mdw-hub/web/layout/process-nav.html @@ -26,7 +26,7 @@ Template -
  • +
  • Milestones Def. diff --git a/mdw-hub/web/workflow/milestoneItem.html b/mdw-hub/web/workflow/milestoneItem.html index 5e6b139e35..724be22eda 100644 --- a/mdw-hub/web/workflow/milestoneItem.html +++ b/mdw-hub/web/workflow/milestoneItem.html @@ -9,7 +9,7 @@
    {{item.process.packageName}}/ + href="#/workflow/processes/{{item.processInstance.id}}"> {{item.process.name}} {{item.process.version == '0' ? '' : 'v' + item.process.version}}  {{item.processInstance.id}}
    Started {{item.startDate}},  Due {{item.due}} diff --git a/mdw/gradle.properties b/mdw/gradle.properties index d032ba75ef..03f3791722 100644 --- a/mdw/gradle.properties +++ b/mdw/gradle.properties @@ -1,4 +1,4 @@ -mdwVersion=6.1.20-SNAPSHOT +mdwVersion=6.1.20 mdwPrevTag=6.1.19 # (previous tag for validating asset versions) diff --git a/mdw/project.yaml b/mdw/project.yaml index c4b93c2ab6..a2e48e89d0 100644 --- a/mdw/project.yaml +++ b/mdw/project.yaml @@ -1,6 +1,6 @@ # paths are relative to the location of this file mdw: - version: 6.1.20-SNAPSHOT + version: 6.1.20 asset: location: ../mdw-workflow/assets