[logback-dev] svn commit: r1848 - logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/pattern

noreply.ceki at qos.ch noreply.ceki at qos.ch
Sat Oct 18 21:43:11 CEST 2008


Author: ceki
Date: Sat Oct 18 21:43:11 2008
New Revision: 1848

Modified:
   logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/pattern/SyslogStartConverter.java

Log:
Fixing date format as suggested in LBCLASSIC-48 by Peter Royal. 

Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/pattern/SyslogStartConverter.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/pattern/SyslogStartConverter.java	(original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/pattern/SyslogStartConverter.java	Sat Oct 18 21:43:11 2008
@@ -41,7 +41,8 @@
   
     localHostName = getLocalHostname();
     try {
-      simpleFormat = new SimpleDateFormat("MMM dd hh:mm:ss", new DateFormatSymbols(Locale.US));
+      // hours should be in 0-23, see also http://jira.qos.ch/browse/LBCLASSIC-48
+      simpleFormat = new SimpleDateFormat("MMM dd HH:mm:ss", new DateFormatSymbols(Locale.US));
     } catch (IllegalArgumentException e) {
       addError("Could not instantiate SimpleDateFormat", e);
       errorCount++;


More information about the logback-dev mailing list