Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-719

FastDateFormat formats year differently than SimpleDateFormat in Java 7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: lang.time.*
    • Labels:
      None

      Description

      Starting with Java 7 does SimpleDateFormat format a year pattern of 'Y' or 'YYY' as '2003' instead of '03' as in former Java releases. According Javadoc this pattern should have been always been formatted as number, therefore the new behavior seems to be a bug fix in the JDK. FastDateFormat is adjusted to behave the same.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joehni Joerg Schaible
                Reporter:
                joehni Joerg Schaible
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: