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

noreply.ceki at qos.ch noreply.ceki at qos.ch
Fri Oct 20 17:25:05 CEST 2006


Author: ceki
Date: Fri Oct 20 17:25:05 2006
New Revision: 726

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

Log:
We no longer need to mess with DATE, ABSOLUTE as SimpleDateFormat does a good job.
Just remove these string constants from the docs (and not reintroduce them in the java code.)
Sorry, this was my mistake.

Modified: logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/pattern/DateConverter.java
==============================================================================
--- logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/pattern/DateConverter.java	(original)
+++ logback/trunk/logback-classic/src/main/java/ch/qos/logback/classic/pattern/DateConverter.java	Fri Oct 20 17:25:05 2006
@@ -31,13 +31,9 @@
       datePattern = CoreGlobal.ISO8601_PATTERN;
     }
     
-    if (datePattern.equals(CoreGlobal.ISO8601_FORMAT)) {
+    if (datePattern.equals(CoreGlobal.ISO8601_STR)) {
       datePattern = CoreGlobal.ISO8601_PATTERN;
-    } else if (datePattern.equals(CoreGlobal.DATE_AND_TIME_FORMAT)) {
-      datePattern = CoreGlobal.DATE_AND_TIME_PATTERN;
-    } else if (datePattern.equals(CoreGlobal.ABSOLUTE_FORMAT)) {
-      datePattern = CoreGlobal.ABSOLUTE_PATTERN;
-    }
+    } 
     
     try {
       simpleFormat = new SimpleDateFormat(datePattern);



More information about the logback-dev mailing list