Skip to content

Commit

Permalink
[FIX JENKINS-9606] Added timestamp sorting in LatestBuilds view
Browse files Browse the repository at this point in the history
  • Loading branch information
mambu committed May 8, 2011
1 parent c91b9cc commit eb3380f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -33,6 +33,10 @@ public int getNumBuilds() {
return numBuilds <= 0 ? 10 : numBuilds;
}

public String getTimestampSortData(Run run) {
return String.valueOf(run.getTimeInMillis());
}

public String getTimestampString(Run run) {
return DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM).format(new Date(run.getTimeInMillis()));
}
Expand Down
Expand Up @@ -50,7 +50,7 @@ THE SOFTWARE.
title="${build.iconColor.description}" />${build.displayName}
</a>
</td>
<td>${it.getTimestampString(build)}</td>
<td data="${it.getTimestampSortData(build)}">${it.getTimestampString(build)}</td>
</tr>
</j:forEach>
</table>
Expand Down

0 comments on commit eb3380f

Please sign in to comment.