Skip to content

Commit

Permalink
Merge pull request #10 from wstarcev/patch-1
Browse files Browse the repository at this point in the history
fix commit time value
  • Loading branch information
shabanovd committed Feb 27, 2015
2 parents 92f9179 + 1a23f4e commit b8bba75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/exist/git/xquery/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathExce

attribs.addAttribute(NAMESPACE_URI,
"time", PREFIX+":time",
"CDATA", String.valueOf( commit.getCommitTime() ));
"CDATA", String.valueOf( commit.getCommitTime() * 1000L ));

builder.startElement(COMMIT_ELEMENT, attribs);

Expand Down Expand Up @@ -134,4 +134,4 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathExce
private final static QName AUTHOR_NAME_ELEMENT = new QName("name", NAMESPACE_URI, PREFIX);
private final static QName AUTHOR_EMAIL_ELEMENT = new QName("email", NAMESPACE_URI, PREFIX);
private final static QName MESSAGE_ELEMENT = new QName("message", NAMESPACE_URI, PREFIX);
}
}

0 comments on commit b8bba75

Please sign in to comment.