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

FastDatePrinter formatting using YY pattern yields junk digits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.11
    • 3.12.0
    • None
    • None

    Description

      final GregorianCalendar cal = new GregorianCalendar(2020, 12, 31, 0, 0, 0);  
      final DatePrinter printer2Digits = getInstance("YY"); 
      assertEquals("21", printer2Digits.format(cal));
      

      the above test fails

      Attachments

        Activity

          People

            Unassigned Unassigned
            ugonen Uri Gonen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 50m
                4h 50m