This is an automated email from the ASF dual-hosted git repository.

martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 742cb1c  Fixing Date format for JSON binding
742cb1c is described below

commit 742cb1c7e6b25ec3ab4c8fcf15484ffa93d53f23
Author: Martin Stockhammer <[email protected]>
AuthorDate: Tue Jul 7 22:53:43 2020 +0200

    Fixing Date format for JSON binding
---
 .../redback/rest/services/interceptors/JacksonJsonConfigurator.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/JacksonJsonConfigurator.java
 
b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/JacksonJsonConfigurator.java
index 04c0c88..61efc74 100644
--- 
a/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/JacksonJsonConfigurator.java
+++ 
b/redback-integrations/redback-rest/redback-rest-services/src/main/java/org/apache/archiva/redback/rest/services/interceptors/JacksonJsonConfigurator.java
@@ -51,7 +51,7 @@ public class JacksonJsonConfigurator
         objectMapper.disable( 
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES );
         objectMapper.setAnnotationIntrospector( new 
JaxbAnnotationIntrospector( objectMapper.getTypeFactory() ) );
         objectMapper.registerModule( new JavaTimeModule( ) );
-        objectMapper.setDateFormat( new SimpleDateFormat( 
"yyyyMMdd'T'HHmmss.SSSZ" ) );
+        objectMapper.setDateFormat( new SimpleDateFormat( 
"yyyy-MM-dd'T'HH:mm:ss.SSSZ" ) );
 
         xmlMapper.disable( DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES );
 

Reply via email to