Skip to content

Commit

Permalink
6.1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Donald Oakes committed Jun 8, 2019
1 parent da13805 commit 380ae10
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ protected TreeMap<Instant,List<T>> 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) {
Expand Down Expand Up @@ -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";
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion mdw-hub/web/layout/process-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Template
</a>
</li>
<li nav-link="/milestones/definition" ng-if="process.hasMilestones">
<li nav-link="/milestones/definition" ng-if="authUser.hasRole('Milestone Design') && process.hasMilestones">
<a href="#/milestones/definitions/{{process.packageName}}/{{processVersion ? process.name + '/v' + process.version : process.name}}">
Milestones Def.
</a>
Expand Down
2 changes: 1 addition & 1 deletion mdw-hub/web/workflow/milestoneItem.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div>
{{item.process.packageName}}/
<a ng-class="['mdw-item-link', 'mdw-item-nowrap', {'mdw-template': item.template}]" style="margin-left:-3px"
href="#/workflow/processes/{{item.id}}">
href="#/workflow/processes/{{item.processInstance.id}}">
{{item.process.name}} {{item.process.version == '0' ? '' : 'v' + item.process.version}} &nbsp;{{item.processInstance.id}}</a>
</div>
<div class="mdw-item-sub">Started {{item.startDate}}<span ng-if="item.due">, &nbsp;Due <i class="mdw-item-highlight">{{item.due}}</i></span>
Expand Down
2 changes: 1 addition & 1 deletion mdw/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mdwVersion=6.1.20-SNAPSHOT
mdwVersion=6.1.20
mdwPrevTag=6.1.19
# (previous tag for validating asset versions)

Expand Down
2 changes: 1 addition & 1 deletion mdw/project.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 380ae10

Please sign in to comment.