Skip to content

Commit

Permalink
add current time
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Oct 29, 2012
1 parent 7736f86 commit c863c75
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -42,6 +42,7 @@ protected InputStream getContentXML(String viewId) throws Exception {

Document doc = XMLHelper.createDocument("http://www.wyona.org/yanel/scheduler/1.0.0", "scheduler");
Element rootEl = doc.getDocumentElement();
rootEl.setAttribute("current-time", "" + new java.util.Date());

if (schedulers == null || schedulers.isEmpty()) {
rootEl.appendChild(doc.createElement("no-schedulers-running"));
Expand Down

0 comments on commit c863c75

Please sign in to comment.