From 1da3a0119467d01375e2bbeacfc06993af3501bf Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Tue, 26 May 2015 00:27:40 +0200 Subject: [PATCH] Use 24 hour clock in brieflogs --- core/src/main/java/org/bitcoinj/utils/BriefLogFormatter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/bitcoinj/utils/BriefLogFormatter.java b/core/src/main/java/org/bitcoinj/utils/BriefLogFormatter.java index c072635f..6b317024 100644 --- a/core/src/main/java/org/bitcoinj/utils/BriefLogFormatter.java +++ b/core/src/main/java/org/bitcoinj/utils/BriefLogFormatter.java @@ -27,7 +27,7 @@ import java.util.logging.*; * A Java logging formatter that writes more compact output than the default. */ public class BriefLogFormatter extends Formatter { - private static final MessageFormat messageFormat = new MessageFormat("{3,date,hh:mm:ss} {0} {1}.{2}: {4}\n{5}"); + private static final MessageFormat messageFormat = new MessageFormat("{3,date,HH:mm:ss} {0} {1}.{2}: {4}\n{5}"); // OpenJDK made a questionable, backwards incompatible change to the Logger implementation. It internally uses // weak references now which means simply fetching the logger and changing its configuration won't work. We must