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

FastDateFormat formats year differently than SimpleDateFormat in Java 7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • lang.time.*
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: