File tree Expand file tree Collapse file tree
src/main/java/com/dkaedv/glghproxy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212@ SpringBootApplication
1313public class Application extends SpringBootServletInitializer {
1414
15+ /**
16+ * The date format used by GitHub. No millis! JIRA DVCS Connector fails parsing
17+ * dates when we have millis, which results in the timezone not being applied.
18+ */
19+ public static final String GITHUB_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ssZ" ;
20+
1521 public static void main (String [] args ) {
1622 System .setProperty ("org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH" , "true" );
1723 SpringApplication .run (Application .class , args );
@@ -27,7 +33,7 @@ public Jackson2ObjectMapperBuilder jacksonBuilder() {
2733 Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder ();
2834 builder
2935 .indentOutput (true )
30- .simpleDateFormat ("yyyy-MM-dd'T'HH:mm:ss'Z'" )
36+ .simpleDateFormat (GITHUB_DATE_FORMAT )
3137 .propertyNamingStrategy (new PropertyNamingStrategy .LowerCaseWithUnderscoresStrategy ());
3238
3339 return builder ;
You can’t perform that action at this time.
0 commit comments