You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2025/04/03 16:24:55 UTC

(jackrabbit-filevault) branch master updated: JCRVLT-800: Fix "Unsupported Field: Year" during emitting version (#369)

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

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git


The following commit(s) were added to refs/heads/master by this push:
     new ceafcf38 JCRVLT-800: Fix "Unsupported Field: Year" during emitting version (#369)
ceafcf38 is described below

commit ceafcf38875771b1dee0686538750cd19f6aa5f0
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Thu Apr 3 18:24:51 2025 +0200

    JCRVLT-800: Fix "Unsupported Field: Year" during emitting version (#369)
    
    Get rid of copyright year range, just list year of first release.
    Automatically calculating the upper range with the current year is just
    plain wrong
---
 .../org/apache/jackrabbit/vault/util/console/AbstractApplication.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/AbstractApplication.java b/vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/AbstractApplication.java
index fab04ff2..4a4af2c3 100644
--- a/vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/AbstractApplication.java
+++ b/vault-cli/src/main/java/org/apache/jackrabbit/vault/util/console/AbstractApplication.java
@@ -21,6 +21,7 @@ import java.io.FileInputStream;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.time.Instant;
+import java.time.ZoneOffset;
 import java.time.temporal.ChronoField;
 import java.util.Iterator;
 import java.util.Properties;
@@ -81,7 +82,7 @@ public abstract class AbstractApplication {
     }
     
     public String getCopyrightLine() {
-        return "copyright 2013-" + Instant.now().get(ChronoField.YEAR) +" by Apache Software Foundation. See LICENSE.txt for more information.";
+        return "copyright 2013 by Apache Software Foundation. See LICENSE.txt for more information.";
     }
     
     public String getVersionString() {