diff --git a/src/main/java/com/cflint/xml/stax/FindBugsCFLintResultMarshaller.java b/src/main/java/com/cflint/xml/stax/FindBugsCFLintResultMarshaller.java index 2710cd7ba..2e988430b 100644 --- a/src/main/java/com/cflint/xml/stax/FindBugsCFLintResultMarshaller.java +++ b/src/main/java/com/cflint/xml/stax/FindBugsCFLintResultMarshaller.java @@ -3,6 +3,9 @@ import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Locale; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; @@ -34,4 +37,8 @@ public void output(final BugList bugList, final Writer writer, final CFLintStats throw new MarshallerException(e); } } + + public static String formatDate(String dateString) { + return new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z", Locale.ENGLISH).format(new Date(Integer.parseInt(dateString))); + } } diff --git a/src/main/resources/findbugs/cflint-to-findbugs.xsl b/src/main/resources/findbugs/cflint-to-findbugs.xsl index ac6ed735e..a3ce493dd 100644 --- a/src/main/resources/findbugs/cflint-to-findbugs.xsl +++ b/src/main/resources/findbugs/cflint-to-findbugs.xsl @@ -2,8 +2,8 @@ - - + @@ -34,7 +34,7 @@ - + @@ -142,11 +142,11 @@ 1 2 - 3 - 4 - 5 - 6 - 7 + 2 + 2 + 2 + 3 + 3 @@ -195,7 +195,7 @@ - + @@ -238,7 +238,7 @@ - +