Skip to content
Permalink
Browse files

[FIXED JENKINS-21906] author|committerTime now uses iso date format

  • Loading branch information
ndeloof committed Feb 26, 2014
1 parent 46e3904 commit d1b7cc0d617bb10db2f4dfdaeb97f5de32d9480b
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/main/java/hudson/plugins/git/GitChangeSet.java
@@ -14,6 +14,7 @@

import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Collection;
import java.util.Date;
@@ -191,7 +192,11 @@ public String getDate() {

@Override
public long getTimestamp() {
return Long.parseLong(authorOrCommitter ? authorTime : committerTime) * 1000L;
try {
new SimpleDateFormat(ISO_8601).parse(getDate()).getTime();
} catch (ParseException e) {
return -1;
}
}

@Override

0 comments on commit d1b7cc0

Please sign in to comment.
You can’t perform that action at this time.