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/03/10 15:38:00 UTC
(maven) branch master updated: Add time zone to Maven startup banner
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 9d9273fa82 Add time zone to Maven startup banner
9d9273fa82 is described below
commit 9d9273fa825ffeb3507593555fb20c712681042b
Author: assokhi <si...@gmail.com>
AuthorDate: Tue Jan 27 13:12:12 2026 +0530
Add time zone to Maven startup banner
---
.../src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java b/impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java
index 18ae405b34..dd9bef862f 100644
--- a/impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java
+++ b/impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java
@@ -21,6 +21,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.time.Duration;
+import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
import java.util.Locale;
@@ -73,6 +74,8 @@ public static String showVersion(String commandLine, String terminal) {
.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)