You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2026/04/21 21:23:28 UTC

(maven) branch maven-3.10.x updated: Add time zone to Maven startup banner

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

slawekjaranowski pushed a commit to branch maven-3.10.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-3.10.x by this push:
     new 851bd0d0ea Add time zone to Maven startup banner
851bd0d0ea is described below

commit 851bd0d0eabe198ad17183d636ae3ad6727920fc
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Tue Apr 21 22:12:54 2026 +0200

    Add time zone to Maven startup banner
---
 .../src/main/java/org/apache/maven/cli/CLIReportingUtils.java          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java b/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
index 7bc661fa74..2d6496cb92 100644
--- a/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
+++ b/maven-embedder/src/main/java/org/apache/maven/cli/CLIReportingUtils.java
@@ -21,6 +21,7 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.text.SimpleDateFormat;
+import java.time.ZoneId;
 import java.util.Date;
 import java.util.Locale;
 import java.util.Properties;
@@ -68,6 +69,8 @@ public static String showVersion() {
                 .append(Locale.getDefault())
                 .append(", platform encoding: ")
                 .append(System.getProperty("file.encoding", "<unknown encoding>"))
+                .append(", time zone: ")
+                .append(ZoneId.systemDefault().getId())
                 .append(ls);
         version.append("OS name: \"")
                 .append(Os.OS_NAME)