Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-1303

Wrong delimiter in pattern layout for ISO 8601

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.2.3
    • logback-core
    • None

    Description

      The CoreConstants class contains the following:

      public static final String ISO8601_PATTERN = "yyyy-MM-dd HH:mm:ss,SSS";

      According to https://www.w3.org/TR/NOTE-datetime a decimal fraction of a second must be delimited by a dot, not comma. So the rigth pattern would be:

      yyyy-MM-dd HH:mm:ss.SSS

      Attachments

        Activity

          People

            logback-dev Logback dev list
            Max Maxim Neverov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: