Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9355

Date.format provides wrong week number value (end of year bug)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.5.8
    • Fix Version/s: None
    • Component/s: groovy-runtime
    • Labels:
      None

      Description

      executing the following code (on December 29, 2019) 

      print new Date().format('yyyy.ww') 

      will output:

      2019.01 

      where the expected value would be 2019.52

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ezer Ezer Karavani

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment