[ 
https://issues.apache.org/jira/browse/LANG-1637?focusedWorklogId=531919&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-531919
 ]

ASF GitHub Bot logged work on LANG-1637:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Jan/21 15:29
            Start Date: 06/Jan/21 15:29
    Worklog Time Spent: 10m 
      Work Description: garydgregory commented on a change in pull request #688:
URL: https://github.com/apache/commons-lang/pull/688#discussion_r552716201



##########
File path: src/main/java/org/apache/commons/lang3/time/FastDatePrinter.java
##########
@@ -1118,7 +1118,7 @@ public void appendTo(final Appendable buffer, final 
Calendar calendar) throws IO
          */
         @Override
         public final void appendTo(final Appendable buffer, final int value) 
throws IOException {
-            appendDigits(buffer, value);
+            appendDigits(buffer, value % 100);

Review comment:
       Well... which way is this one going to go? @ugonen Are you going to 
update your PR or @michael-o do you want to provide a different PR?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 531919)
    Time Spent: 4.5h  (was: 4h 20m)

> FastDatePrinter formatting using YY pattern yields junk digits
> --------------------------------------------------------------
>
>                 Key: LANG-1637
>                 URL: https://issues.apache.org/jira/browse/LANG-1637
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 3.11
>            Reporter: Uri Gonen
>            Priority: Minor
>          Time Spent: 4.5h
>  Remaining Estimate: 0h
>
> {code:java}
> final GregorianCalendar cal = new GregorianCalendar(2020, 12, 31, 0, 0, 0);  
> final DatePrinter printer2Digits = getInstance("YY"); 
> assertEquals("21", printer2Digits.format(cal));
> {code}
> the above test fails



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to