[java-identity-provider] branch main updated: IDP-1734 - Various date formatters are using the wrong year syntax

Scott Cantor cantor.2 at osu.edu
Mon Jan 4 14:07:08 UTC 2021


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=e47083eca57ed6e94ab8ce8c6debc55479c458e9

The following commit(s) were added to refs/heads/main by this push:
       new  e47083eca IDP-1734 - Various date formatters are using the wrong year syntax
e47083eca is described below

commit e47083eca57ed6e94ab8ce8c6debc55479c458e9
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Jan 4 09:07:05 2021 -0500

    IDP-1734 - Various date formatters are using the wrong year syntax
    
    https://issues.shibboleth.net/jira/browse/IDP-1734
---
 .../src/main/resources/net/shibboleth/idp/conf/global-system.xml        | 2 +-
 idp-conf/src/main/resources/conf/audit.xml                              | 2 +-
 .../src/main/java/net/shibboleth/idp/metrics/impl/HTTPReporter.java     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/global-system.xml b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/global-system.xml
index 6750acea4..45675c99b 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/global-system.xml
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/conf/global-system.xml
@@ -310,7 +310,7 @@
             p:targetObject-ref="shibboleth.JSONObjectMapper"
             p:targetMethod="setDateFormat">
         <property name="arguments">
-            <bean class="java.text.SimpleDateFormat" c:_0="YYYY-MM-dd'T'HH:mm:ss.SSSZZ" />
+            <bean class="java.text.SimpleDateFormat" c:_0="yyyy-MM-dd'T'HH:mm:ss.SSSZZ" />
         </property>
     </bean>
     
diff --git a/idp-conf/src/main/resources/conf/audit.xml b/idp-conf/src/main/resources/conf/audit.xml
index a9faf4c9e..42d82b877 100644
--- a/idp-conf/src/main/resources/conf/audit.xml
+++ b/idp-conf/src/main/resources/conf/audit.xml
@@ -19,7 +19,7 @@
 
     <!-- Override the format of date/time fields in the log and/or convert to default time zone. -->
     <!--
-    <bean id="shibboleth.AuditDateTimeFormat" class="java.lang.String" c:_0="YYYY-MM-dd'T'HH:mm:ss.SSSZZ" />
+    <bean id="shibboleth.AuditDateTimeFormat" class="java.lang.String" c:_0="yyyy-MM-dd'T'HH:mm:ss.SSSZZ" />
     <util:constant id="shibboleth.AuditDefaultTimeZone" static-field="java.lang.Boolean.TRUE" />
     -->
 
diff --git a/idp-core/src/main/java/net/shibboleth/idp/metrics/impl/HTTPReporter.java b/idp-core/src/main/java/net/shibboleth/idp/metrics/impl/HTTPReporter.java
index a24daa3d4..d416a5f62 100644
--- a/idp-core/src/main/java/net/shibboleth/idp/metrics/impl/HTTPReporter.java
+++ b/idp-core/src/main/java/net/shibboleth/idp/metrics/impl/HTTPReporter.java
@@ -70,7 +70,7 @@ import net.shibboleth.utilities.java.support.primitive.StringSupport;
 public class HTTPReporter extends ScheduledReporter implements InitializableComponent {
 
     /** Default date/time format string. */
-    @Nonnull @NotEmpty public static final String DEFAULT_DT_FORMAT = "YYYY-MM-dd'T'HH:mm:ss.SSSZZ";
+    @Nonnull @NotEmpty public static final String DEFAULT_DT_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZZ";
 
     /** Class logger. */
     @Nonnull private final Logger log = LoggerFactory.getLogger(HTTPReporter.class);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list