Skip to content

Commit

Permalink
[FIXED JENKINS-23791] convert seconds to milliseconds for timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Skorbovenko authored and MarkEWaite committed Aug 2, 2014
1 parent ae1f9fc commit 1f9f31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/git/GitChangeSet.java
Expand Up @@ -178,7 +178,7 @@ private String isoDateFormat(String s) {
// legacy mode
int i = s.indexOf(' ');
long time = Long.parseLong(s.substring(0,i));
return FastDateFormat.getInstance(ISO_8601).format(new Date(time)) + s.substring(i);
return FastDateFormat.getInstance(ISO_8601).format(new Date(time * 1000)) + s.substring(i);
}

private String parseHash(String hash) {
Expand Down

0 comments on commit 1f9f31d

Please sign in to comment.